Here comes my troubling issue.
I have a problem with selectOneRadio tag.
When I submit a form every single field from the form stores its state - the
textfields are filled, the checkboxes are checked but the radio buttons
group lose their selection.
This is the page code:
<h:selectOneRadio id="type" value="#{movieControlBean.selectedType}"
required="true" layout="pageDirection">
<f:selectItems value="#{movieControlBean.types}"/>
</h:selectOneRadio>
<h:message for="type" errorClass="errors"/>
This is the relied code in the movieControlBean:
public Integer getSelectedType()
{
return this.selectedType;
}
public void setSelectedType(Integer selectedType)
{
this.selectedType= selectedType;
this.selectedTypeDescription =
Utils.getFilmService().getDictionary(this.selectedType).getDescription();
}
public SelectItem [] getTypes()
{
List movieTypes = service.getDictionaries("FILM_TYPE");
types = new SelectItem[movieTypes.size()];
int i = 0;
for(Dictionary type : movieTypes)
{
types = new
SelectItem(type.getDictionaryId(),type.getDescription());
i++;
} return types;
}
Any ideas?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937392#3937392
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937392
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user