Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1564

f:viewParam not working with Spring Web Flow

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for Feedback
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.1
    • Fix Version/s: None
    • Component/s: JSF

      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

        Attachments

          Activity

            People

            Assignee:
            pwebb Phil Webb
            Reporter:
            nils_eckert Nils Eckert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: