Primefaces Mobile Navigation Error

UI Components for JSF
Post Reply
f3ell0w
Posts: 5
Joined: 08 Apr 2015, 10:24

18 Jun 2015, 09:36

Hello. When i try to use Mobile Navigation in Primefaces, i get an error
Uncaught Error: cannot call methods on pagecontainer prior to initialization; attempted to call method 'change'
. I have tried different ways of solving this, pm:pageName in backing bean, PrimeFaces.navigate('#viewName', {reverse : 'true'})", but no success. I always get the same error. How can i make this work? My faces-config content is

Code: Select all

<application>
		<navigation-handler>org.primefaces.mobile.application.MobileNavigationHandler</navigation-handler>
		<default-render-kit-id>PRIMEFACES_MOBILE</default-render-kit-id>
	</application>
I use command button in order to navigate, the code is:

Code: Select all

<p:commandButton action="#{auctionBean.goToContactPage()}"
												value="#{auction.active ? 'Contact' : 'Completed'}" disabled="#{!auction.active}"
												style="font-size:14px;margin-top: 5px;width:100%;margin-bottom:5px;">
Also, i am using Primefaces Mobile in Liferay, could that be a problem?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests