I have a situation where there is a selectOneMenu that has a value bound to a backing bean.
I need to have a button that doesn\'t update model values (that is why it
To follow up a bit, I don't think you need to bind the component to a bean. You can just grab the component from the FacesContext
instance via the UIViewRoot
, if you know the component's client ID.
It would go a little something like this:
Foo component = (Foo)FacesContext.getCurrentInstance().getViewRoot().getComponent(clientId);
Where Foo
is the class of the component you are using and clientId
is the client ID of the component in the "formId:elementId" format that JSF uses.