File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes selectOneMenu ValueChangeListener not Firing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "selectOneMenu ValueChangeListener not Firing" Watch "selectOneMenu ValueChangeListener not Firing" New topic

selectOneMenu ValueChangeListener not Firing

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
I have this menu and the ValueChangeListener only fires when i submit the page, but i want it to fire whenever i change the value of the menu. Please can someone help

<h:selectOneMenu valueChangeListener='#{content.processValue}' value="#{}">
<f:selectItems value="#{content.abbey}"/>
<h:commandButton value="success" actionListener="#{content.doIt}"></h:commandButton>
<h:messages showDetail="true"></h:messages>
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
Change the line from

<h:selectOneMenu valueChangeListener='#{content.processValue}' value="#{}">


<h:selectOneMenu valueChangeListener='#{content.processValue}' value="#{}" onchange="submit()" >

Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
I agree. Here's the link:
subject: selectOneMenu ValueChangeListener not Firing
Similar Threads
values in one form dissapearing when editing another
JSF does not call action in managed bean
JSF 1.2 - ValueChangeEvent not picking up new selected value after submit
MyFaces - HtmlSelectOneMenu and ValueChangeEvent
Form calling a session scoped backing bean constructor twice