[ http://issues.apache.org/jira/browse/MYFACES-72?page=comments#action_59752 ] Brett Langston commented on MYFACES-72: ---------------------------------------
I just ran into this problem. This should definetely be an error when required="true", otherwise I'm not sure what purpose the "required" attribute serves in this case. There are many situations where a selectOneRadio will not initially have a value, and the "required" attribute is needed to trigger an error if the user does not supply one. I'd look through the source code and try to help with a fix, but I did that with another bug last November and the bug is still marked as Open. So, I don't know if it will help for me to try again, but I'm very willing to help out if it will do some good. > HtmlSelectOneRadio does not correctly validate the required case > ---------------------------------------------------------------- > > Key: MYFACES-72 > URL: http://issues.apache.org/jira/browse/MYFACES-72 > Project: MyFaces > Type: Bug > Versions: 1.0.8 beta > Environment: WSAD 5.1.2, IE 6 > Reporter: Heath Borders-Wing > > If an HtmlSelectOneRadio does not initially have a value, none of its options > are initially rendered as selected. If none are selected and a form submit > occurs IE 6 (possibly others browsers?) does not submit any name/value pair > for that input. In the renderer, this is just ignored, and no error is > thrown. It would probably be best to put logic in the renderer to account > for this case. > I can do this, but I wanted opinions on the issue before I wrote the fix. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
