javaserverfaces-spec-public
  1. javaserverfaces-spec-public
  2. JAVASERVERFACES_SPEC_PUBLIC-1131

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

    Details

      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.

        Activity

          People

          • Assignee:
            Manfred Riem
            Reporter:
            lu4242
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: