Hi,
I have a s:subform and selectOneMenu in this form, onchange i submit the form and in the valueChangeListener method of the backing bean i am calling another backing beans method using methodBinding and i want this method to navigate another page (
bean2.callMe excuted but it doesn't navigates or updates the view), and #{sessionScope.code} value is not updated with the selected items value, here is the code;
<h:form>
....
<s:subForm id="changeFORM">
<t:selectOneMenu value="#{sessionScope.code}" valueChangeListener="#{changer.change}"
<f:selectItems value="#{changer.list}" />
<f:converter converterId="javax.faces.Long" />
</t:selectOneMenu>
</s:subForm>
....
</h:form>
public class Change{
....
public void change(ValueChangeEvent valueChangeEvent) {
facesContext.getApplication().createMethodBinding(
"#{bean2.callMe}", new Class[] {}).invoke(
facesContext, new Object[] {});
}
....
}
regards....
--
Murat HAZER
- MethodBinding Murat Hazer
- Re: MethodBinding Matthias Wessendorf