You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2005/12/03 19:51:30 UTC
[jira] Reopened: (MYFACES-320) selectOneRadio does not properly persist its value
[ http://issues.apache.org/jira/browse/MYFACES-320?page=all ]
Martin Marinschek reopened MYFACES-320:
---------------------------------------
Volker find out a configuration where this caused problems. Thanks!
> 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
>
> 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