Details
Description
http://www.nfjsone.com/blog/ed_burns/2009/09/dealing_gracefully_with_viewexpiredexception_in_jsf2.
MYFACES-3101 patch solves that for HTML request.
For partial/ajax request/response new problems appear: if you try to use redirect like:
/viewExpired.xhtml?faces-redirect=true
myfaces throw NPE in org.apache.myfaces.context.servlet.PartialViewContextImpl.getPartialResponseWriter(), because
_facesContext.getRenderKit() returns null in this case (no view root is available)
Second easy to fix problem is line facesContext.getViewRoot().getViewId().equals(newViewId) in NavigationHandlerImpl.handleNavigation(FacesContext, String, String) in case of navigationCase.isRedirect().
Attachments
Issue Links
- is related to
-
MYFACES-3101 NavigationHandlerImpl throws NullpointerException if view is expired
- Closed