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

FACELETS_VIEW_MAPPINGS param has no effect in the bridge

    Details

      Description

      Steps to reproduce:

      1. Remove the following lines from the jsf-applicant-portlet web.xml:
         <!-- Although the FacesServlet will not be invoked by any portlet requests, it is required to initialize JSF. -->
         <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class&gt;javax.faces.webapp.FacesServlet</servlet-class&gt;
             <load-on-startup>1</load-on-startup>
         </servlet>
         <!-- MyFaces will not initialize unless a servlet-mapping to the Faces Servlet is present. -->
         <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.xhtml</url-pattern>
         </servlet-mapping>
        
      2. Add the following lines to the web.xml:
         <context-param>
            <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>
            <param-value>*.xhtml;*.jsf;*.faces;faces/*</param-value>
         </context-param>
        
      3. Deploy the JSF Applicant portlet and navigate to it.
      4. Click the VIEW link.
      5. Change the URL to http://localhost:8080/group/bridge-demos/jsf-applicant?p_p_id=1_WAR_comliferayfacesdemojsfapplicantportlet_INSTANCE_ABCD&_facesViewIdRender=/WEB-INF/views/portletViewMode.faces.

      If the bug still exists, the portlet will appear empty.

      If the bug is fixed, the portlet's view mode will be rendered.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: