[JAVASERVERFACES_SPEC_PUBLIC-1131] h:outputScript and h:outputStylesheet "name" attribute is not required Created: 15/Aug/12  Updated: 24/Aug/15  Resolved: 17/Aug/15

Status: Resolved
Project: javaserverfaces-spec-public
Component/s: Documentation: Javadoc, TLDDoc, RenderkitDoc, PDF
Affects Version/s: 2.1
Fix Version/s: 2.3

Type: Bug Priority: Critical
Reporter: lu4242 Assignee: Manfred Riem
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File changebundle.txt    

 Description   

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.



 Comments   
Comment by marfous [ 12/Dec/12 ]

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

Comment by Lynx6 [ 06/Mar/13 ]

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

Comment by Ed Burns [ 01/Aug/14 ]

Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

Comment by Manfred Riem [ 01/Aug/14 ]

Setting priority to Critical

Comment by Manfred Riem [ 17/Aug/15 ]

Applied to 2.3 trunk,

svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1131, h:outputScript and h:outputStylesheet "name" attribute is not required"
Sending jsf-api/doc/standard-html-renderkit-base.xml
Sending jsf-ri/conf/share/html_basic.taglib.xml
Transmitting file data ..
Committed revision 15016.

Comment by Manfred Riem [ 17/Aug/15 ]

Applied to 2.3 trunk,

svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1131, h:outputScript and h:outputStylesheet "name" attribute is not required"
Sending jsf-api/doc/standard-html-renderkit.xml
Transmitting file data .
Committed revision 15017.

Generated at Wed Jan 18 08:40:14 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.