Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2617

The bridge is unable to navigate to Facelet views when the viewId has a query string parameter

    Details

      Description

      The JSR 329 Spec allows for the JSF viewId to contain query string parameters. Here is an example from the WEB-INF/faces-config.xml descriptor of the TCK:

      <navigation-case>
      	<from-outcome>encodeActionURLWithModeActionTest</from-outcome>
      	<to-view-id>/tests/multiRequestTestResultRenderCheck.jsp?javax.portlet.faces.PortletMode=edit&amp;param1=testValue</to-view-id>
      </navigation-case>
      

      When navigating to a JSP view with a query string, the bridge executes correctly. However, when navigating to a Facelet (.xhtml) view with a query string, the bridge fails to create the view. The solution is to remove the query string before delegating to the JSF implementation's ViewDeclarationHandler.buildView(FacesContext,UIViewRoot) method.

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                bridge-impl-3.0.0
                bridge-impl-4.0.0
                bridge-impl-5.0.0