Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: lu4242
Votes: 1
Watchers: 1

If you were logged in you would be able to see more operations.

h:outputScript and h:outputStylesheet "name" attribute is not required

Created: 15/Aug/12 04:52 PM   Updated: 08/Nov/13 09:15 PM
Component/s: Documentation: Javadoc, TLDDoc, RenderkitDoc, PDF
Affects Version/s: 2.1
Fix Version/s: None

Time Tracking:
Not Specified

Participants: lu4242, Lynx6 and marfous

 Description  « Hide

The facelets documentation javadoc for h:outputScript and h:outputStylesheet indicates that "name" attribute is required, but it is valid to use h:outputScript just to render a <script> tag that surrounds the inner content. For example:

<h:outputScript rendered="#{!empty cc.attrs.script}"><!--
.myCustomScript = #{cc.attrs.script} ;


<h:outputStylesheet rendered="#{!empty}"><![CDATA[
.myCustomStyle { #{} }

is a valid syntax.

Lynx6 added a comment - 06/Mar/13 08:09 PM

wow... this problem need to be fixed, netbeans is showing each file with error parsing.

marfous added a comment - 12/Dec/12 12:58 PM

Please would be possible to increase the priority to the Major and fix the issue in the taglib specification.

See related NetBeans IDE issue:
Bug 216926 - h:outputScript and h:outputStylesheet "name" attribute is not required