[richfaces-issues] [JBoss JIRA] (RF-11833) Label for calendar results in non-valid markup

Pavol Pitonak (Created) (JIRA) jira-events at lists.jboss.org
Mon Dec 19 15:53:10 EST 2011


Label for calendar results in non-valid markup
----------------------------------------------

                 Key: RF-11833
                 URL: https://issues.jboss.org/browse/RF-11833
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-input
    Affects Versions: 4.1.0.Final
            Reporter: Pavol Pitonak


The code in first code snippet results in markup below which is not valid. The for attribute of the label element must refer to a form control, e.g. the actual input inside calendar (that with ID dateForm:fromDateInputDate).

{code:xml}
<h:outputLabel value="From date" for="fromDate" />
<rich:calendar id="fromDate" .../>
{code}


{code:xml}
<label for="dateForm:fromDate">From date</label>
<span class="calendar" id="dateForm:fromDate">
  <span id="dateForm:fromDatePopup" style="white-space: nowrap;">
    <input class="rf-cal-inp " id="dateForm:fromDateInputDate" name="dateForm:fromDateInputDate" readonly="readonly" style="vertical-align: middle; " type="text" value="Nov 19, 2011" />
  ...
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list