I have a JSF page with . I want to set the value bound to the when the value is changed.
Bean:
Just nest the tag within the tag.
It'll submit the value when the HTML DOM change event has occurred (i.e. when the field was edited and then blurred).
The event attribute already defaults to valueChange, so it's omitted. Its execute attribute already defaults to @this, so it's omitted. In case you'd like to update other component on complete, set render attribute. E.g.
If you want to invoke a listener when it has been successfully set, set the listener attribute:
public void changeIn() {
System.out.println("in has been changed to " + in);
}