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

Facelet liferay-ui:input-editor not passing some attributes through to JSP liferay-ui:input-editor

    Details

      Description

      Liferay Faces Portal implements the liferay-ui:input-editor as a Facelet composite component that ultimately issues a RequestDispatcher to a JSP that invokes the Liferay out-of-the-box liferay-ui:input-editor JSP tag.

      When a JSF portlet is deployed as a WAR outside the Liferay Portal WAR context, the portal will invoke the portlet lifecycle with a PortletRequest that decorates an underlying com.liferay.portal.servlet.NamespaceServletRequest.

      Additionally, the InputEditorTag.setAttributes(HttpServletRequest) method saves some of the JSP tag attributes (like "toolbarSet") as request attributes, so that they can be picked up by the portal-web/docroot/html/js/editor/ckeditor.jsp during the dispatch.

      The problem is that the underlying NameSpaceServletRequest is "namespacing" the request attribute names by prefixing them with the response namespace. This is causing ckeditor.jsp to fail to get values for attributes like "toolbarSet".

      The fix for this problem will be to wrap the NameSpaceServletRequest during dispatch, so that calls to setAttribute(String, Object) will prevent the response namespace from getting prefixed.

        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
                liferay-faces-2.1.1-ga2
                liferay-faces-3.0.1-legacy-ga2
                liferay-faces-3.0.1-ga2
                liferay-faces-3.1.1-ga2
                liferay-faces-3.2.4-ga5