valueChangeListener fires in JSF lifecycle on a typical actionListener?
jtp51Aug 22 2008 — edited Apr 6 2009Why does a valueChangeListener on a selectOneChoice fire in the JSF Lifecycle when I click on a separate non-related commandButton that runs an actionListener?
How do I prevent a valueChangeListener to not fire when I click on a commandButton that runs an actionListener?
<af:selectOneChoice id="overrideDevice"
label="#{common.labelOverrideDevice}"
required="true"
unselectedLabel="#{common.selectionRequired}"
value="#{resend.overrideDevice}"
autoSubmit="true"
immediate="true"
valueChangeListener="#{resend.valueChanged}"
binding="#{resend.overrideDeviceSelect}">
<f:selectItems value="#{resend.overrideDeviceList}" />
</af:selectOneChoice>
and
<af:commandButton id="bSearch"
text="#{common.tbFind}"
actionListener="#{resend.doSearch}"/>
Thanks,
--Todd