This bug causes all children of h:head to not be rendered except outputStylesheet and outputScript components (ex: <script>, <style>, link, meta etc. fail to render).
Steps to reproduce:
- # Add the following code to the <h:head> tag of the jsf-applicant-portlet's portletViewMode.xhtml:
- Deploy the portlet and navigate to it.
If the bug still exists, the portlet will render, no alert with appear, and the <script> markup will not appear in the browser.
If the bug is fixed, the <script> markup will appear in the browser, and an alert will appear with the following text:
To workaround this issue, you can create a composite component with a name attribute. The name must end in either "css" or "js" and should probably be unique per view to ensure that it is always loaded. For example to render scripts like the one mentioned above in the head section, create the following resources/workaround/headElements.xhtml file:
To use this component with the script mentioned above: