Page 1 of 1

layoutUnit collapsible doesn't work

Posted: 13 Jul 2011, 12:55
by jocajudoka
Hi, I'm using primefaces 2.2, tomcat 7 and Eclipse helios

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 :D

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 in page using template:

Code: Select all

<ui:composition template="/templates/layout.xhtml">
Am I doing something wrong?