[
https://issues.apache.org/jira/browse/TOMAHAWK-463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473163
]
Skylar Sutton commented on TOMAHAWK-463:
----------------------------------------
I agree. It is essential that labels utilize the "for" attribute for IE. This
is a major complaint by our users whenever we use a SelectOneRadio tag, they
are forced to click on the tiny radio button itself, and not the label.
Perhaps a boolean switch could be built into the tag?
> for attribute not rendered on radio buttons
> -------------------------------------------
>
> Key: TOMAHAWK-463
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-463
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: selectOneRadio / radio
> Affects Versions: 1.1.2
> Environment: n/a
> Reporter: Russell Loewen
> Assigned To: Grant Smith
> Priority: Minor
>
> SelectOneRadio doesn't render the "for" attribute on the label tag it creates
> beside the radio button. The net effect is that on Internet Explorer the
> user is not able to click on the label text to select the radio item. It's
> arguable that this is IE's problem for not supported the parent-child
> relationship between the label tag surrounding the radio button, but the for
> attribute is a clearer association anyhow.
> I believe that the following could fix the problem.
> org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.class
> after Line 163, insert:
> _writer.writeAttribute(HTML.FOR_ATTR,
> uiComponent.getClientId(facesContext), null);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.