Navigation with redirect after ViewExpiredExpcetion throws NPE
--------------------------------------------------------------
Key: MYFACES-3105
URL: https://issues.apache.org/jira/browse/MYFACES-3105
Project: MyFaces Core
Issue Type: Bug
Components: General
Affects Versions: 2.0.6-SNAPSHOT
Environment: myfaces trunk
Reporter: Martin Kočí
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().
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira