You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org> on 2005/09/02 12:32:39 UTC

[jira] Reopened: (MYFACES-72) HtmlSelectOneRadio does not correctly validate the required case

     [ http://issues.apache.org/jira/browse/MYFACES-72?page=all ]
     
Mathias Broekelmann reopened MYFACES-72:
----------------------------------------

     Assign To: Mathias Broekelmann

I think I found a way to make it work without violating the spec.

Initialy it was only a problem with HtmlRadioRendererBase.decode() called HtmlRendererUtils.decodeUIInput instead of HtmlRendererUtils.decodeUISelectOne().

But to make MYFACES-465 work an empty string couldnĀ“t be used. It is possible that an identifier of a select item is equal to an empty string. A special constant (RendererUtils.NOTHING) is used instead.

I will commit that.

> HtmlSelectOneRadio does not correctly validate the required case
> ----------------------------------------------------------------
>
>          Key: MYFACES-72
>          URL: http://issues.apache.org/jira/browse/MYFACES-72
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>     Versions: 1.0.8 beta
>  Environment: WSAD 5.1.2, IE 6
>     Reporter: Heath Borders-Wing
>     Assignee: Mathias Broekelmann

>
> 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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira