New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h:outputScript and h:outputStylesheet "name" attribute is not required #1131
Comments
@glassfishrobot Commented |
@glassfishrobot Commented See related NetBeans IDE issue: |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1131, h:outputScript and h:outputStylesheet "name" attribute is not required" |
@glassfishrobot Commented svn commit -m "Fixes https://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-1131, h:outputScript and h:outputStylesheet "name" attribute is not required" |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
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.
Affected Versions
[2.1]
The text was updated successfully, but these errors were encountered: