layout component not working for 3.0 M3

UI Components for JSF
Post Reply
jasdanh
Posts: 39
Joined: 12 Mar 2010, 23:44

15 Sep 2011, 23:08

I tried using milestone 3 library and having problem with the layout component.
Layout component not showing left or top or bottom only showing centre. So when I remove the centre code, chrome pops up with error "centre-pane is a required element".

There's nothing big i did, but just followed your example in the user guide. Never seen this problem before in earlier releases.

It works with primefaces 3.0 M1 but not M2 or M3.
---
primefaces 3.0 M3
Tomcat 6.0.33
JSF 2.0 Mojorra implementation

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
>
<f:view>

<h:head>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> -->
<title>Lighthouse Tabernacle Church</title>
</h:head>
<h:body>


	<p:layout fullPage="true">
		<p:layoutUnit position="top" header="TOP" height="50">
			<h:outputText value="Top content." />
		</p:layoutUnit>
		<p:layoutUnit position="bottom" header="BOTTOM" height="100">
			<h:outputText value="Bottom content." />
		</p:layoutUnit>
		<p:layoutUnit position="left" header="LEFT" width="300">
			<h:outputText value="Left content" />
		</p:layoutUnit>
		<p:layoutUnit position="right" header="RIGHT" width="300">
			<h:outputText value="Right content" />
		</p:layoutUnit>
		<p:layoutUnit position="center" header="CENTER">
			<h:outputText value="Center Content" />
		</p:layoutUnit>
	</p:layout>
</h:body>
</f:view>
</html>




jasdanh
Posts: 39
Joined: 12 Mar 2010, 23:44

15 Sep 2011, 23:28

Nevermind. I solved the problem. I was using code from the user guide which is 2.2. Old code. I basically copied from the showcase online and it works.

t_tobi
Posts: 27
Joined: 15 Aug 2011, 14:50

16 Sep 2011, 08:26

The position changed from top to north, right to west...
See showcase http://www.primefaces.org/showcase-labs ... utFull.jsf

faisalgeek
Posts: 29
Joined: 28 Mar 2010, 14:45

16 Sep 2011, 08:40

Yeah, I have been remain victim of this error.... :)
MyEclipse for Spring 9.0 , Tomcat 6.0, Jboss 6.0, PrimeFaces 3.0.RC2 , Mojarra 2.1.4 (JSF 2.1) - http://www.javaplex.com

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests