myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett Langston (JIRA)" <>
Subject [jira] Commented: (MYFACES-72) HtmlSelectOneRadio does not correctly validate the required case
Date Fri, 25 Feb 2005 06:32:49 GMT
     [ ]
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:
>      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:
If you want more information on JIRA, or have a bug to report see:

View raw message