-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: util-2.0.0, util-3.0.0
-
Fix Version/s: util-2.0.0, util-3.0.0
-
Component/s: Liferay Faces Util
-
Labels:None
{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}
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}