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

        Hide
        Manfred Riem added a comment -

        Setting priority to Critical

        Show
        Manfred Riem added a comment - Setting priority to Critical
        Hide
        Ed Burns added a comment -

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

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Lynx6 added a comment -

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

        Show
        Lynx6 added a comment - wow... this problem need to be fixed, netbeans is showing each file with error parsing.
        Hide
        marfous added a comment -

        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

        Show
        marfous added a comment - 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

          People

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

            Dates

            • Created:
              Updated: