Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES_SPEC_PUBLIC-1131
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: lu4242
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
javaserverfaces-spec-public

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

Tags:
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:

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

or

<composite:implementation>
<h:outputStylesheet rendered="#{!empty cc.attrs.style}"><![CDATA[
.myCustomStyle { #{cc.attrs.style} }
]]></h:outputStylesheet>
</composite:implementation>

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
http://netbeans.org/bugzilla/show_bug.cgi?id=216926