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

liferay-ui:input-editor prepends the response namespace twice for JavaScript function names

    Details

      Description

      The liferay-ui:input-editor renders some JavaScript code similar to the following:

      /*<![CDATA[*/function _1_WAR_FACES1439portlet_A7264_f1_inputEditor1richTextBlurred(){
      var a=document.getElementById("_1_WAR_FACES1439portlet_A7264:f1:inputEditor1:inputText");a.onblur()};/*]]>*/

      Where the string _1_WAR_FACES1439portlet_ indicates the portlet namespace. However, the string A7264 is an optimized version of the portlet namespace. So in a sense, the response namespace is being prepended twice for JavaScript function names.

      Note that if com.liferay.faces.bridge.optimizePortletNamespace is set to true in web.xml, then this would be more obvious:

      <script>/*<![CDATA[*/function _1_WAR_FACES1439portlet__1_WAR_FACES1439portlet__f1_inputEditor1richTextBlurred(){
      var a=document.getElementById("_1_WAR_FACES1439portlet__1_WAR_FACES1439portlet_:f1:inputEditor1:inputText");a.onblur()};/*]]>*/</script>
      

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