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

aui:script with position="bottom" does not encode scripts to the JSF2 partial-response during Ajax

    Details

      Description

      Given the following markup:

      <aui:script position="bottom">
      alert('hello');
      </aui:script>
      

      When the portal page is initially rendered via the RENDER_PHASE, the JSF lifecycle will execute for the portlet and the ScriptRenderer will set the WebKeys.AUI_SCRIPT_DATA request attribute which will in turn cause the script to be located at the bottom of the page.

      But during Ajax, the ScriptRenderer writes it directly to the response and corrupts the JSF partial-response XML document.

      The ScriptRenderer needs to be fixed so that it puts the script in an <eval>...</eval> section of the JSF partial-response.

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