[richfaces-issues] [JBoss JIRA] Created: (RF-9330) Setting access key for rich:calendar is not operational.

Chris Hornsey (JIRA) jira-events at lists.jboss.org
Wed Sep 8 13:55:49 EDT 2010


Setting access key for rich:calendar is not operational.
--------------------------------------------------------

                 Key: RF-9330
                 URL: https://jira.jboss.org/browse/RF-9330
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: component-input
    Affects Versions: 3.3.3.Final
         Environment: All
            Reporter: Chris Hornsey
            Priority: Minor


In the following example I specify the calendar control as the for atrtibute of a label, and I provide an access key on the label.
		<h:label for="onDate" accesskey="o" value="#{careMsgs.complaintFilterDateOnTitle}"/>
		<rich:calendar id="onDate" value="" popup="true"
                        datePattern="MM/dd/yyyy" showApplyButton="false"
			onfocus="selected(this);" onblur="unselected(this);"
			enableManualInput="true">
			<f:convertDateTime  pattern="#{careMsgs.datePattern}" timeZone="#{careMsgs.timezone}"/>
		</rich:calendar>

Since the renderer uses may divs, spans, inputs etc only one of the divs is named onDate.  The actual input is not named named onDate.

The label gets rendered as 
<label for="form:onDate" class="validationMessage" accesskey="o">&#160;On</label>

But the input text for the calendar is rendered as :
<input class="rich-calendar-input " id="form:onDateInputDate" name="form:onDateInputDate" style="vertical-align: middle; " type="text" />

The renderer generates the component so that the actual "focusable" html component is not named the same as the JSF component is named.  Since the for atribute is verified against the component tree, I can not simply use the "onDateInputDate" as the for attribute of the label.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list