You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Johan Hansson (JIRA)" <de...@myfaces.apache.org> on 2007/05/15 11:41:16 UTC

[jira] Updated: (TOMAHAWK-463) for attribute not rendered on radio buttons

     [ https://issues.apache.org/jira/browse/TOMAHAWK-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johan Hansson updated TOMAHAWK-463:
-----------------------------------

    Status: Patch Available  (was: Open)

> 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.