I'm trying to make template with layout units(top, bottom, left and center) and change just center part of that template on my pages, also I need my left part is collapsible but it doesn't work when I make pages like composition pages based on this template (scroll works fine). Here is the code, hope it's going to be clear what I want
Code from template:
Code: Select all
<ui:insert name="left">
<p:layoutUnit position="left" width="200"
resizable="false" closable="false" collapsible="true" scrollable="true">
<h:form >
<p:menu>
<p:submenu label="Game data">
<p:menuitem value="Game data all" url="#"/>
<p:menuitem value="Achievements" url="#"/>
<p:menuitem value="Items" url="#"/>
</p:submenu>
</p:menu>
</h:form>
</p:layoutUnit >
</ui:insert>
Code: Select all
<ui:composition template="/templates/layout.xhtml">