This content has been marked as final.
Show 1 reply
-
1. Re: RF4 : selectOneMenu + ajax : cannot get the selectedValue in Bean
mtranchant Apr 3, 2012 3:03 AM (in response to mtranchant)I have found a solution
JSF:
<h:form id="cubeChoice">
<h:selectOneMenu value="#{mainController.selectedCubeUniqueName}" id="cubeSelection">
<f:selectItems value="#{mainController.cubeNameList}"/>
<a4j:ajax event="change" listener="#{mainController.cubeChanged}" ajaxSingle="true" execute="@this" render="dimensions" />
</h:selectOneMenu>
<rich:message for="cubeSelection" />
</h:form>
The value is correctly transfered to the bean in selectedCubeUniqueName
public void cubeChanged(AjaxBehaviorEvent abe)
{
// this.selectedCubeUniqueName
}
Regards
Michael