Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.4
    • Fix Version/s: 6.0.7-4
    • Component/s: examples
    • Labels:
      None

      Description

      All form elements must have labels. Some of our form fields do not have these, particularly on text fields:

      web/hello1 (and security version)
      web/hello2 (and security version)
      web/guessnumber
      web/ajaxguessnumber
      web/compositecomponentlogin
      jaxrs/rsvp (one instance)
      ejb/converter (and security version)
      cdi/guessnumber

      We need to use the h:outputLabel tag with the for attribute set to the id of the element for which it is a label.

      To make the text of the label visible, use the value attribute to specify it. To make it invisible, use the title attribute. For example, to keep the label in the hello1 app from showing, you could do the following:

      <h:outputLabel for="username"
      title="My name is: "/>
      <h:inputText id="username"
      ... />

      It might be more user-friendly to provide a visible label, though.

        Activity

        Hide
        Kim Haase added a comment -

        I have completed the label work for the simple examples listed in the issue description.

        I'm unassigning myself so that others can pick up the work for dukes-forest if need be. The dukes-tutoring labels are correct as is.

        Show
        Kim Haase added a comment - I have completed the label work for the simple examples listed in the issue description. I'm unassigning myself so that others can pick up the work for dukes-forest if need be. The dukes-tutoring labels are correct as is.
        Hide
        Kim Haase added a comment -

        In Duke's Forest, all form elements have labels.

        Show
        Kim Haase added a comment - In Duke's Forest, all form elements have labels.
        Hide
        Kim Haase added a comment -

        Added a label to a form element in the mailconnector example.

        Show
        Kim Haase added a comment - Added a label to a form element in the mailconnector example.
        Hide
        Kim Haase added a comment -

        Actually, the dukes-tutoring login form needs a fix. Because the page uses a mix of JSF and HTML tags, the labels' for attributes don't match the input tags' id attributes. So we need to add a title attribute to the input tags to meet the accessibility requirement.

        Show
        Kim Haase added a comment - Actually, the dukes-tutoring login form needs a fix. Because the page uses a mix of JSF and HTML tags, the labels' for attributes don't match the input tags' id attributes. So we need to add a title attribute to the input tags to meet the accessibility requirement.
        Hide
        Kim Haase added a comment -

        Added title attributes. Committed at revision 927.

        Show
        Kim Haase added a comment - Added title attributes. Committed at revision 927.
        Hide
        Kim Haase added a comment -

        I believe that this task has been completed for all the current examples and can now be closed.

        Show
        Kim Haase added a comment - I believe that this task has been completed for all the current examples and can now be closed.

          People

          • Assignee:
            Kim Haase
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: