myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek (JIRA)" <...@myfaces.apache.org>
Subject [jira] Reopened: (MYFACES-320) selectOneRadio does not properly persist its value
Date Tue, 06 Dec 2005 13:42:28 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-320?page=all ]
     
Martin Marinschek reopened MYFACES-320:
---------------------------------------


> 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
>     Assignee: Martin Marinschek
>     Priority: Minor
>      Fix For: 1.1.2, Nightly

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


Mime
View raw message