Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

valueChangeListener fires in JSF lifecycle on a typical actionListener?

jtp51Aug 22 2008 — edited Apr 6 2009
Why 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2009
Added on Aug 22 2008
11 comments
3,126 views