javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-1793

jsf_core.tld taglib and associated JavaDoc for f:selectItems lists itemLabelEscaped twice, omits noSelectionValue

    Details

    • Issuezilla Id:
      1,793
    • Status Whiteboard:
      Hide

      size_small importance_medium

      Show
      size_small importance_medium

      Description

      The tag library, jsf_core.tld, and the JavaDoc generated for it contain an error
      in their description of f:selectItems . The taglib lists itemLabelEscaped twice,
      with two different descriptions, and omits noSelectionValue. It looks like a
      copy and paste error.

      The spec mentions this in the errata (C092), but links to the wrong bug id
      (https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=56
      instead of
      https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=536)
      which might be how this was missed.

      It's wrong in current public JavaDoc:

      http://download-llnw.oracle.com/javaee/6/javaserverfaces/2.0/docs/pdldocs/facelets/f/selectItems.html

      https://javaserverfaces.dev.java.net/nonav/docs/2.0/vdldocs/facelets/index.html

      The correct attribute is mentioned in some books about JSF2, like "JSF 2.0: the
      complete reference" (see:
      http://books.google.com.au/books?id=aNRq-8GlRYQC&pg=PA542&lpg=PA542&dq=selectOneMenu+noSelectionOption&source=bl&ots=U1r3f_mpqd&sig=hKwxhdb7GJj6fDoBfb1JhofwHWo&hl=en&ei=Gxt2TMD1D4WevQPvzrC4Bg&sa=X&oi=book_result&ct=result&resnum=4&ved=0CDIQ6AEwAw#v=onepage&q=selectOneMenu%20noSelectionOption&f=false)
      .

        Issue Links

          Activity

          Hide
          ringerc added a comment -

          This issue is also present in 2.1.0 as of beta3 in mvn.

          The addition of a noSelectionValue attribute to an <f:selectItems/> appears to
          cause the containing control to have no items, as if the <f:selectItems/> was
          absent. Presumably it's not validating.

          Show
          ringerc added a comment - This issue is also present in 2.1.0 as of beta3 in mvn. The addition of a noSelectionValue attribute to an <f:selectItems/> appears to cause the containing control to have no items, as if the <f:selectItems/> was absent. Presumably it's not validating.
          Hide
          ringerc added a comment -

          Please disregard the previous comment. While the taglib does seem to still be
          wrong in 2.1.0, my comments about noSelectionValue's apparent effects were
          incorrect, and caused by an unrelated error I introduced at the same time.

          Show
          ringerc added a comment - Please disregard the previous comment. While the taglib does seem to still be wrong in 2.1.0, my comments about noSelectionValue's apparent effects were incorrect, and caused by an unrelated error I introduced at the same time.
          Hide
          Ed Burns added a comment -

          Exclude these as impractical for GlassFish 3.1

          Show
          Ed Burns added a comment - Exclude these as impractical for GlassFish 3.1
          Hide
          Ed Burns added a comment -

          Exclude these issues from GlassFish 3.1. Reasons include:

          not important enough
          too risky

          Show
          Ed Burns added a comment - Exclude these issues from GlassFish 3.1. Reasons include: not important enough too risky
          Hide
          Manfred Riem added a comment -

          This is a spec issue. Please open it at the spec issue tracker.

          Show
          Manfred Riem added a comment - This is a spec issue. Please open it at the spec issue tracker.

            People

            • Assignee:
              Unassigned
              Reporter:
              ringerc
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: