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

Support ExternalContext.getApplicationContextPath()

Details

    Description

      The FacesBridge must follow the requirements in the JSF 2.2 JavaDoc. However, since the Portlet 3.0 API does not have an equivalent to ServletContext.getContextPath() the FacesBridge must rely on the Faces runtime to discover the application context path during initialization.

      TCK: Register a javax.faces.event.SystemEventListener that listens for the javax.faces.event.PostConstructApplicationEvent associated with the javax.faces.application.Application source object type. When the event is received, call FacesContext.getCurrentInstance() in order to acquire the "startup" FacesContext instance provided by the Faces runtime. Then call FacesContext.getExternalContext() in order to get the "startup" ExternalContext provided by the Faces runtime. Remember the return value of ExternalContext.getApplicationContextPath(). During a render, assert that the remembered application context path is equal to the value of ExternalContext.getApplicationContextPath().

      Attachments

        Activity

          People

            neil.griffin Neil Griffin
            neil.griffin Neil Griffin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                facesbridge-tck-5.0.0
                facesbridge-spec-5.0.0
                bridge-impl-5.0.0