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

Empty <script> tag is written at the bottom of pages when no scripts have been added via FacesRequestContext

    Details

      Description

      {markdown}
      Steps to reproduce:

      1. Deploy the jsf-showcase-webapp and navigate to the `h:button` General example.
      2. Right-click and View Source

      If the bug still exists `<script type="text/javascript"></script>` will appear before the closing body tag.

      *Note:* [PartialResponseWriterImpl handles the ajax case correctly by checking if scripts.isEmpty() before attempting to render the scripts](https://github.com/liferay/liferay-faces-util/blob/master/util/src/main/java/com/liferay/faces/util/context/internal/PartialViewContextImpl.java#L97).{markdown}

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                util-2.0.0
                util-3.0.0