Use the tag <f:ajax>. This is very similar to <a4j:support>.
<h:selectOneMenu value="#{bean.selectedItem}">
<f:selectItems value="#{bean.selectItems}" />
<f:ajax listener="#{bean.valueChanged}" />
</h:selectOneMenu>
with
public void valueChanged() {
}
<f:ajax>also has an attribute eventthat defaults to valueChangewhen used in <h:selectOneMenu>, so it is not specified.
source
share