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

liferay-ui:input-editor not working with Liferay Portal 6.1.2 CE / 6.1.30 EE

    Details

      Description

      The com.liferay.portal.kernel.servlet.taglib.aui.ScriptData class (utilized by the aui:script tag) underwent some refactoring in Liferay 6.2 that caused the Facelet version of the liferay-ui:input-editor stop working.

      First, the following method was removed and resulted in a compile failure on the Liferay Faces side:

      public void append(String content, String use)

      And was replaced with a new method that requires the portletId:

      public void append(String portletId, String content, String use)

      Second, the order in which JavaScript specified by aui:script was appearing on the rendered page changed which caused JavaScript errors in the console.

      Third, ckeditor.jsp (executed by the RequestDispatcher) encounters aui:script> JSP tags that ultimately save scripts in the WebKeys.AUI_SCRIPT_DATA request attribute. The intent (in a JSP environment) is to let the ScriptDataPortletFilter render the script content at the bottom of the portal page on the initial RenderRequest. However, in a JSF environment we need to render the scripts directly to the response as part of the component markup, because the JSF environment might be utilizing the DOM-diff feature of ICEfaces. If the scripts were rendered at the bottom of the page during the RenderRequest, and then rendered inline during a subsequent ResourceRequest, then ICEfaces would detect a DOM-diff and unnecessarily replace the DOM with a new editor.

        Attachments

          Issue Links

            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-3.0.3-legacy-ga4
                  liferay-faces-3.0.3-ga4
                  liferay-faces-3.1.3-ga4