Primefaces 5 Mobile Lazy Load Navigation

UI Components for JSF
Post Reply
pabloriveiro
Posts: 1
Joined: 07 Feb 2014, 10:55

14 Mar 2014, 17:06

Hi,

previously I was working with primefaces Primefaces 4.0 and Primefaces Mobile 1.0-SNAPSHOT,
I was able to navigate between pages in diferent xhtml files with ajax and transitions using pm:<page>?lazyLoad=true or #<page>?lazyLoad=true.

Code: Select all

<ui:composition 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.org/ui"
	xmlns:pm="http://primefaces.org/mobile"
	template="/templates/ui-mobile.xhtml">

	<ui:define name="header">
		<f:facet name="right">
			<p:button value="Inicio" iconPos="notext"  icon="info" href="#/mobile/menu?lazyLoad=true"/>
		</f:facet>	
	</ui:define>

	<ui:define name="content">

	</ui:define>
	
	<ui:define name="footer">	
		<h:form>
			<p:commandButton icon="arrow-r" iconPos="right" value="Next" action="pm:register?lazyLoad=true"/>
		</h:form>
	</ui:define>	

</ui:composition>
I was using the Apache MyFaces-2 implementation provided by Websphere 8.5.

Now I migrate to Primefaces 5.0 and I'm trying to do the same, but I can't do ajax navigations with transitions between different xhtml pages, if I put all pages in the same xhtml file it works, but otherwise I can't get it work with ajax and transitions.

How can I do this?

thanks

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 13 guests