A summary page is a page in XHTML file format that is used to display data in a tabular format based on multiple filter criteria.
Getting Started
Summary Page as an XHTML document consists of the following main parts:
DOCTYPE declaration
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
html root element and xmlns attributes
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core" xmlns:pt="http://xmlns.jcp.org/jsf/passthrough" xmlns:h="http://java.sun.com/jsf/html" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:crm="http://java.sun.com/jsf/composite/crm">
Template
Summary page uses the crm custom template template.xhtml.
<ui:composition template="/template.xhtml"/>
By default the template provides the base interface layout of the page as well as the following tags:
- "managedBean" parameter - contains the name of the managed bean that will be used from template
"back-button" placeholder - defines the back button of the page that will be inserted in the left side of the topbar before the title
"title" placeholder - defines the title of the page that will be inserted n the left side of the topbar
"viewname" placeholder - defines the view name in breadcrumb of the page
"actions" placeholder - defines the actions of the page that will be inserted in the right side of the topbar
"content" placeholder - defines the actual content of the page
Simple Example
The following example shows a summary page of Countries.