Details
-
Type:
Bug
-
Status: Waiting for Feedback
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 2.3.1
-
Fix Version/s: None
-
Component/s: JSF
-
Labels:
Description
When adding Spring Web Flow to a project, f:viewParam tags are not working any more.
With some debugging I found the following root cause.
The Class org.springframework.faces.webflow.Jsf2FlowViewHandler delegates (in my case) to com.sun.faces.application.view.MultiViewHandler.
But the following method is not delegated: String deriveLogicalViewId(FacesContext context, String rawViewId)
When viewHandler.deriveLogicalViewId(..) is used, the default method from the abstract class javax.faces.application.ViewHandler is called. This method just returns the entered paramater rawViewId. So the correct viewId is not determinded.
In the end, the the viewId is not derive and a JspViewHandlingStrategy is used instead of the expected com.sun.faces.application.view.FaceletViewHandlingStrategy, the f:viewParam tags will not be processed.
To fix the problem, it is nesessary to also delegate deriveLogicalViewId.
I attached to corresonding patch.
Regards,
Nils Eckert