Layout controls not showing in PrimeFaces 3

UI Components for JSF
Post Reply
sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

26 Jul 2011, 20:54

Hello,

I am trying to show full page layout as presented in the showcase for PrimeFaces 3.

The layout does display, but the controls for closing and collapsing are not shown. Instead, I see a little white dot.

I have searched far and wide but cannot find a solution. I hope someone can help me resolve this problem.

I am running JBoss 5.0.1, JSF 2.1.2, PrimeFaces 3.0.M2 and Java 1.6.0_26.

Here is the page:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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 contentType="text/html">

	<h:head></h:head>

	<h:body>
		<p:layout fullPage="true">

			<p:layoutUnit position="north" size="100" header="Top"
				resizable="true" closable="true" collapsible="true">
				<h:outputText value="Top unit content." />
			</p:layoutUnit>

			<p:layoutUnit position="south" size="100" header="Bottom"
				resizable="true" closable="true" collapsible="true">
				<h:outputText value="South unit content." />
			</p:layoutUnit>

			<p:layoutUnit position="west" size="200" header="Left"
				resizable="true" closable="true" collapsible="true">
				<h:form>

				</h:form>
			</p:layoutUnit>

			<p:layoutUnit position="east" size="200" header="Right"
				resizable="true" closable="true" collapsible="true" effect="drop">
				<h:outputText value="Right unit content." />
			</p:layoutUnit>

			<p:layoutUnit position="center">
				<h:form>
            This fullPage layout consists of five different layoutUnits which are resizable and closable by default.

        </h:form>
			</p:layoutUnit>

		</p:layout>
	</h:body>
</f:view>
</html>
Here is my web.xml:

Code: Select all

<?xml version="1.0"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
	<display-name>EMoveWeb</display-name>
	<context-param>
		<param-name>primefaces.THEME</param-name>
		<param-value>blitzer</param-value>
	</context-param>
	<context-param>
		<param-name>com.sun.faces.expressionFactory</param-name>
		<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
	</context-param>
	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>
</web-app>
Here is the page rendered:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<link type="text/css" rel="stylesheet" href="/EMoveWeb/javax.faces.resource/theme.css.jsf?ln=primefaces-blitzer" />
<link type="text/css" rel="stylesheet" href="/EMoveWeb/javax.faces.resource/layout/layout.css.jsf?ln=primefaces&v=3.0.M2" />
<script type="text/javascript" src="/EMoveWeb/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=3.0.M2"></script>
<script type="text/javascript" src="/EMoveWeb/javax.faces.resource/jquery/ui/jquery-ui.js.jsf?ln=primefaces&v=3.0.M2"></script>
<script type="text/javascript" src="/EMoveWeb/javax.faces.resource/core/core.js.jsf?ln=primefaces&v=3.0.M2"></script>
<script type="text/javascript" src="/EMoveWeb/javax.faces.resource/layout/layout.js.jsf?ln=primefaces&v=3.0.M2"></script></head><body><script type="text/javascript">$(function() {widget_j_idt5 = new PrimeFaces.widget.Layout('j_idt5', {full:true,north:{paneSelector:'#j_idt6',size:'100',resizable:true,spacing_open:6,spacing_closed:25},south:{paneSelector:'#j_idt8',size:'100',resizable:true,spacing_open:6,spacing_closed:25},west:{paneSelector:'#j_idt10',size:'200',resizable:true,spacing_open:6,spacing_closed:25},east:{paneSelector:'#j_idt12',size:'200',resizable:true,spacing_open:6,spacing_closed:25,fxName:'drop'},center:{paneSelector:'#j_idt14',size:'auto',resizable:false}});});</script><div id="j_idt6" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-north"><div class="ui-layout-unit-header ui-widget-header ui-corner-all"><span class="ui-layout-unit-header-title">Top</span><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Close"><span class="ui-icon ui-icon-close"></span></a><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Collapse"><span class="ui-icon ui-icon-triangle-1-n"></span></a></div><div class="ui-layout-unit-content ui-widget-content">Top unit content.</div></div><div id="j_idt8" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-south"><div class="ui-layout-unit-header ui-widget-header ui-corner-all"><span class="ui-layout-unit-header-title">Bottom</span><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Close"><span class="ui-icon ui-icon-close"></span></a><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Collapse"><span class="ui-icon ui-icon-triangle-1-s"></span></a></div><div class="ui-layout-unit-content ui-widget-content">South unit content.</div></div><div id="j_idt10" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-west"><div class="ui-layout-unit-header ui-widget-header ui-corner-all"><span class="ui-layout-unit-header-title">Left</span><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Close"><span class="ui-icon ui-icon-close"></span></a><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Collapse"><span class="ui-icon ui-icon-triangle-1-w"></span></a></div><div class="ui-layout-unit-content ui-widget-content">

<form id="j_idt11" name="j_idt11" method="post" action="/EMoveWeb/pages/emove.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_idt11" value="j_idt11" />
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="966778953040939726:-942966118402388775" autocomplete="off" />
</form></div></div><div id="j_idt12" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-east"><div class="ui-layout-unit-header ui-widget-header ui-corner-all"><span class="ui-layout-unit-header-title">Right</span><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Close"><span class="ui-icon ui-icon-close"></span></a><a href="javascript:void(0)" class="ui-layout-unit-header-icon ui-state-default ui-corner-all" title="Collapse"><span class="ui-icon ui-icon-triangle-1-e"></span></a></div><div class="ui-layout-unit-content ui-widget-content">Right unit content.</div></div><div id="j_idt14" class="ui-layout-unit ui-widget ui-widget-content ui-corner-all ui-layout-center"><div class="ui-layout-unit-content ui-widget-content">
<form id="j_idt15" name="j_idt15" method="post" action="/EMoveWeb/pages/emove.jsf" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="j_idt15" value="j_idt15" />

            This fullPage layout consists of five different layoutUnits which are resizable and closable by default.

        <input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="966778953040939726:-942966118402388775" autocomplete="off" />
</form></div></div></body>
</html>
And, finally my JBoss logs:

Code: Select all

14:52:52,306 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
14:52:52,307 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
14:52:52,307 INFO  [ServerImpl] Bootstrap URL: null
14:52:52,307 INFO  [ServerImpl] Home Dir: C:\tools\jboss-5.0.1.GA
14:52:52,307 INFO  [ServerImpl] Home URL: file:/C:/tools/jboss-5.0.1.GA/
14:52:52,307 INFO  [ServerImpl] Library URL: file:/C:/tools/jboss-5.0.1.GA/lib/
14:52:52,308 INFO  [ServerImpl] Patch URL: null
14:52:52,308 INFO  [ServerImpl] Common Base URL: file:/C:/tools/jboss-5.0.1.GA/common/
14:52:52,308 INFO  [ServerImpl] Common Library URL: file:/C:/tools/jboss-5.0.1.GA/common/lib/
14:52:52,308 INFO  [ServerImpl] Server Name: default
14:52:52,308 INFO  [ServerImpl] Server Base Dir: C:\tools\jboss-5.0.1.GA\server
14:52:52,309 INFO  [ServerImpl] Server Base URL: file:/C:/tools/jboss-5.0.1.GA/server/
14:52:52,309 INFO  [ServerImpl] Server Config URL: file:/C:/tools/jboss-5.0.1.GA/server/default/conf/
14:52:52,309 INFO  [ServerImpl] Server Home Dir: C:\tools\jboss-5.0.1.GA\server\default
14:52:52,309 INFO  [ServerImpl] Server Home URL: file:/C:/tools/jboss-5.0.1.GA/server/default/
14:52:52,309 INFO  [ServerImpl] Server Data Dir: C:\tools\jboss-5.0.1.GA\server\default\data
14:52:52,309 INFO  [ServerImpl] Server Library URL: file:/C:/tools/jboss-5.0.1.GA/server/default/lib/
14:52:52,309 INFO  [ServerImpl] Server Log Dir: C:\tools\jboss-5.0.1.GA\server\default\log
14:52:52,310 INFO  [ServerImpl] Server Native Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\native
14:52:52,310 INFO  [ServerImpl] Server Temp Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
14:52:52,310 INFO  [ServerImpl] Server Temp Deploy Dir: C:\tools\jboss-5.0.1.GA\server\default\tmp\deploy
14:52:52,756 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/tools/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
14:52:53,211 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
14:52:53,213 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
14:52:53,410 INFO  [CopyMechanism] VFS temp dir: C:\tools\jboss-5.0.1.GA\server\default\tmp
14:52:53,428 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
14:52:54,210 INFO  [ServerInfo] Java version: 1.6.0_26,Sun Microsystems Inc.
14:52:54,210 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
14:52:54,210 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02,Sun Microsystems Inc.
14:52:54,211 INFO  [ServerInfo] OS-System: Windows 7 6.1,amd64
14:52:54,235 INFO  [JMXKernel] Legacy JMX core initialized
14:52:55,605 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6c7a3a30(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
14:52:55,606 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6c7a3a30(root=C:\tools\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
14:52:55,606 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@3c789d63{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
14:52:56,550 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
14:53:00,157 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
14:53:00,157 INFO  [NativeServerConfig] 3.0.5.GA
14:53:06,665 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
14:53:06,756 INFO  [MailService] Mail Service bound to java:/Mail
14:53:07,807 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
14:53:07,820 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
14:53:07,905 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
14:53:07,905 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
14:53:08,086 INFO  [TransactionManagerService] Initializing recovery manager
14:53:08,155 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.ActionStatusService_2] - Other Exception: java.lang.NullPointerException
14:53:08,156 ERROR [STDERR] java.lang.NullPointerException
14:53:08,156 ERROR [STDERR] 	at com.arjuna.ats.arjuna.recovery.ActionStatusService.doWork(ActionStatusService.java:123)
14:53:08,156 ERROR [STDERR] 	at com.arjuna.ats.internal.arjuna.recovery.Connection.run(Connection.java:83)
14:53:08,196 INFO  [TransactionManagerService] Recovery manager configured
14:53:08,196 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
14:53:08,217 INFO  [TransactionManagerService] Starting transaction recovery manager
14:53:08,682 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
14:53:08,702 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:53:08,702 INFO  [StandardService] Starting service jboss.web
14:53:08,705 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
14:53:08,748 INFO  [Catalina] Server startup in 137 ms
14:53:08,765 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
14:53:09,206 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
14:53:09,263 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
14:53:09,521 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
14:53:09,538 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
14:53:09,559 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
14:53:09,577 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
14:53:09,597 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/tools/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
14:53:09,654 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
14:53:09,674 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
14:53:09,677 INFO  [RAMJobStore] RAMJobStore initialized.
14:53:09,677 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
14:53:09,677 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
14:53:09,677 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
14:53:10,040 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
14:53:10,310 INFO  [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
14:53:10,373 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
14:53:10,378 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
14:53:10,378 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
14:53:10,421 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
14:53:10,421 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@41883161 started
14:53:10,425 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
14:53:10,425 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@5cf61d6a started
14:53:10,426 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
14:53:10,427 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
14:53:10,427 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@56af29e started
14:53:10,505 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
14:53:10,611 INFO  [TomcatDeployment] deploy, ctxPath=/EMoveWeb
14:53:15,945 ERROR [STDERR] Jul 26, 2011 2:53:15 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.0.M2
14:53:15,975 ERROR [STDERR] Jul 26, 2011 2:53:15 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
14:53:16,003 INFO  [TomcatDeployment] deploy, ctxPath=/
14:53:16,078 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
14:53:16,146 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
14:53:16,169 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:53:16,176 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 23s:865ms
Thanks.
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

sebek
Posts: 38
Joined: 19 Jul 2011, 18:56

29 Jul 2011, 20:47

Well, the layout controls started to show up. I am not sure what I did, but after I added some content, the controls appeared.
-- PrimeFaces 3.3-SNAPSHOT -- Mojarra 2.1.2 -- Tomcat 7.0.19 --

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 48 guests