ContainerBean containerBean = ;
PageContent pageContent = containerBean.getPageContent();
Region region = pageContent.getRegion(0);
List<BackingBean> beans = region.getBeanList();
A ContainerBean can have a child ContainerBean(DialogBean),
and a DialogBean can have a child DialogBean. For example,
ContainerBean containerBean = ;
DialogBean dialogBean = containerBean.getDialogBean();
PageContent dialogPageContent = dialogBean.getPageContent();
DialogBean childDialogBean = dialogBean.getDialogBean();
ContainerBean parent = childDialogBean.getContainerBean();
ContainerBean root = childDialogBean.getRootContainerBean();
A root ContainerBean is a ViewScoped managed bean. By default there are three pages and three root ContainerBeans accordingly.
#{empty containerBean.backingBeanContext.authenticatedUser}
A root ContainerBean can have a main menu(called ContainerMenuBean), page header menu and/or toolbar.
See ContainerBean Configuration for detail.
For example, to change layout type to 2 columns,
Region region = pageContent.getRegion(regionNumber);
region.setLayoutType(LayoutType.COLUMN_VIEW);
region.setLayoutColumns(2);
To use layout code with embedded EL expressions:
Region region = pageContent.getRegion(regionNumber);
region.setLayoutType(LayoutType.LAYOUT_CODE);
String layoutCode = "<div>#{bean_0}</div><div>#{bean_1}</div>";
region.setlayoutCode(layoutCode);
#{bean_N} will be resolved to the bean at position N within the region.
For example,
GET /contextPath/page/page1?p1=v1&p2=v2 POST /contextPath/page/page1 POST /contextPath/page/page1Context path is /contextPath, request URI is /page/page1, and view parameters are: p1=v1, p2=v2.
message, locale, _sid are not view parameters.
Note that the viewInfo is stored before any URL rewriting is applied.
View Info is used to create bookmarkable URLs. See Bookmarkable URL for detail.
<context-param>
<param-name>com.sun.faces.numberOfViewsInSession</param-name>
<param-value>5</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.numberOfLogicalViews</param-name>
<param-value>10</param-value>
</context-param>
Saving states is disabled for bots(search engines) to save resources.
See ${cmobilecom.home}/conf/user-agent.xml for bot configuration.
If request parameter saveStates=false, saving states will be disabled.
But saveStates=true will be ignored.
Saving states should be disabled for pages that does not have any POST actions.