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

Ensure Mojarra namespaces parameters when requires-namespaced-parameters=true

    Details

      Description

      When a Liferay Portlet requires namespaced parameters (via liferay-portlet.xml; defaults to true),

      <requires-namespaced-parameters>true</requires-namespaced-parameters>
      

      Mojarra (and other Faces libraries) must use namespaced parameters, so the following setting must be added in the web.xml:

      <context-param>
          <param-name>com.sun.faces.namespaceParameters</param-name>
          <param-value>true</param-value>
      </context-param>
      

      If the com.sun.faces.namespaceParameters context/init param is missing when requires-namespaced-parameters is set, the portlet will not work, but no clear error message will explain the problem. Many developers have struggled with this problem over the years, and it is still a problem today.

      This task involves detecting whether the portlet requires namespaced parameters (in the Bridge) and setting the com.sun.faces.namespaceParameters context/init param automatically.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: