Left Pane which is housed in a layout panel and contains navigational menu:
Code: Select all
<h:form id="leftPane" prependId="false">
<h:head/>
<ui:include src="#{navBean.leftPaneUrl}"/>
<p:remoteCommand name="updateCenter" process="@none" update="centerPane" global="true" />
</h:form>
Code: Select all
<p:menuitem value="#{msgsFields.label_menuAdmin_jobStatus}" actionListener="#{navBean.handleLeftNavigation}"
immediate="true" oncomplete="updateCenter()" update="@none">
<f:param name="centerPaneUrl" value="administration/list-jobStatus"/>
</p:menuitem>
Code: Select all
<h:form id="centerPane" prependId="false">
<h:head/>
<ui:include src="#{navBean.centerPaneUrl}"/>
<p:remoteCommand name="updateCenter" process="@none" update="centerPane" global="true"/>
</h:form>
The base-layout template:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<f:view locale="#{appLocale.locale}" contentType="text/html">
<h:head>
<link rel="stylesheet" href="${request.contextPath}/resources/css/theme/jquery.ui.theme.css" type="text/css" media="screen, projection" target="head"/>
<ui:insert name="headIncludes"/>
</h:head>
<h:body>
<p:layout fullPage="true">
<p:layoutUnit position="top" height="110">
<ui:insert name="top"/>
<ui:insert name="menu"/>
</p:layoutUnit>
<p:layoutUnit position="left" width="200">
<ui:insert name="left"/>
</p:layoutUnit>
<p:layoutUnit position="center" scrollable="true">
<ui:insert name="center"/>
</p:layoutUnit>
</p:layout>
</h:body>
<link rel="stylesheet" href="${request.contextPath}/resources/css/mycompany/my.css" type="text/css" media="screen, projection" target="head"/>
</f:view>
</html>
Any pointers?
Thanks