layoutUnit collapsible doesn't work

UI Components for JSF
Post Reply
jocajudoka
Posts: 3
Joined: 12 Jul 2011, 22:28
Location: Belgrade, Serbia

13 Jul 2011, 12:55

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?
Primefaces 2.2.1, JSF 2.0, TomCat 7.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests