[
http://jira.jboss.com/jira/browse/JBSEAM-1294?page=all ]
Chris Rudd reopened JBSEAM-1294:
--------------------------------
The original exception is now resolved. But...there seems to be another one.
The the stock JSF converters require that he component parameter of getAsString not be
null. The following is a code snipit from Param.getValueFromModel :
converter.getAsString( facesContext, facesContext.getViewRoot(), value );
The code is using the view root as the component, which is null as
ExceptionFilter.createFacesContext does not setup an initial UIViewRoot.
I made the following change and it seems to have resolved the problem :
ExceptionFilter.java
private MockFacesContext createFacesContext(HttpServletRequest request,
HttpServletResponse response)
{
MockFacesContext ctx = new MockFacesContext( new
MockExternalContext(getServletContext(), request, response), new MockApplication() );
ctx.setViewRoot( new UIViewRoot() );
return ctx;
}
Page redirected to from exception filter cannot use page parameters
-------------------------------------------------------------------
Key: JBSEAM-1294
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1294
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 1.2.1.GA, 1.2.0.GA
Reporter: Chris Rudd
Assigned To: Gavin King
Fix For: 1.3.0.ALPHA
If the page you are redirecting to using the exception handling system (section 5.3)
defines page parameters (section 5.1.1.1) a NPE is generated.
The problem is that the MockApplication provided by the MockFacesContext setup in
ExceptionFilter.endWebRequestAfterException does not have a variableResolver (its null).
Is there any way to refactor that code to create a real FacesContext via the FacesContext
factory?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira