[ 
http://issues.apache.org/jira/browse/MYFACES-320?page=comments#action_12332566 
] 

Sharath Reddy commented on MYFACES-320:
---------------------------------------


I tested with the same setup. Looks like this is no longer a problem.

> selectOneRadio does not properly persist its value
> --------------------------------------------------
>
>          Key: MYFACES-320
>          URL: http://issues.apache.org/jira/browse/MYFACES-320
>      Project: MyFaces
>         Type: Bug
>     Reporter: Matt Jarvis
>     Priority: Minor

>
> The selectOneRadio component loses its modified value when the view is 
> re-rendered due to validation errors (or the like).
> For example: 
>       <x:selectOneRadio id="animalTypeGroup" 
> value="#{animalManager.animalType}" layout="spread">
>               <f:selectItem itemValue="dog" itemLabel="Dog"/>
>               <f:selectItem itemValue="cat" itemLabel="Cat"/>
>               <f:selectItem itemValue="fish" itemLabel="Fish"/>
>       </x:selectOneRadio>
>       <x:radio for="animalTypeGroup" index="0" />
>       <x:radio for="animalTypeGroup" index="1" />
>       <x:radio for="animalTypeGroup" index="2" />
>       <x:outputText escape="false" value="<br/>"/>
>       <x:outputText id="animalSpecies" value="Animal Species: "/>
>       <x:inputText value="#{animalManager.animalSpecies}"/>
>       <x:outputText escape="false" value="<br/>"/>
>       <x:outputText id="animalGenus" value="Animal Genus: "/>
>       <x:inputText value="#{animalManager.animalGenus}" 
> validator="#{animalManager.validateGenus}"/>
>       <x:outputText escape="false" value="<br/>"/>
>       <x:outputText escape="false" value="<br/>"/>
>       <x:commandButton value="Validate Species" 
> action="#{animalManager.submitForm}" immediate="true"/>
> If you change the animalTypeGroup selection and then the animalGenus 
> validation fails, the change to animalTypeGroup is lost when the view is 
> re-rendered.

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

Reply via email to