?faces-redirect=true on navigation action doesn't work

UI Components for JSF
Post Reply
bfaissal
Posts: 2
Joined: 21 Mar 2010, 18:31

10 Jun 2010, 01:20

Hello,

I'm facing a weired problem with "?faces-redirect=true" , when added to any of my actions this one stop to work !

this is the stacktrace :

Code: Select all

java.lang.NullPointerException
	at org.primefaces.context.PrimeExternalContext.redirect(PrimeExternalContext.java:45)
	at javax.faces.context.ExternalContextWrapper.redirect(ExternalContextWrapper.java:458)
	at org.primefaces.context.PrimeExternalContext.redirect(PrimeExternalContext.java:58)
	at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:182)
	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
	at javax.faces.component.UICommand.broadcast(UICommand.java:315)
	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:775)
	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1267)
	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
I'm using PrimeFaces 2.0.2 on Glassfish V.3 (CDI/weld)

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

10 Jun 2010, 09:48

Hi, I had a similar issue http://primefaces.prime.com.tr/forum/vi ... f=3&t=2335. I guess RequestContext should be instantiated in beforePhase and not in afterPhase in PostRestoreViewHandler. I also found this issue http://primefaces.prime.com.tr/forum/vi ... f=3&t=2355. Maybe Cagatay can give your a response.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests