Two Laptop Bag
The moose likes JSF and the fly likes rich:comboBox valueChangeListener is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "rich:comboBox valueChangeListener is not working" Watch "rich:comboBox valueChangeListener is not working" New topic

rich:comboBox valueChangeListener is not working

Tamas Malatinszki

Joined: Apr 17, 2008
Posts: 5
Hi All,

I created an XHTML file in my JSF project, and I put a rich:comboBox component into a rich:panel like this:

I put a valueChangeListener method into the BaseInfo bean:

I don't understand why, but it's not working. There are no any error messages, just nothing happens, when I'm selecting another value in the comboBox. I can see all the items in the comboBox which cames from the BaseInfo bean, so this part is working fine.
Do You have any idea about it?
When I used h:selectOneListBox before this code worked fine.

I'm using Richfaces 3.2.1 with JBoss 4.2.2.

camilo casadiego

Joined: Oct 05, 2008
Posts: 3
hi there, are you 100% everything is enclosed by a <h:form></h:form> tags??...just said because that happened to me a while ago...
Srikanth Madasu
Ranch Hand

Joined: Sep 10, 2008
Posts: 48

try removing immediate="true", I guess it is preventing the backing bean from being updated.. and so your valuechangeListener is not fired as the value is not changed....

not sure.. just a guess.. hope this helps...

If it's easy.. then everybody would do it!
Mario Campos

Joined: Oct 30, 2008
Posts: 3
Try calling FacesContext.getCurrentInstance().renderResponse(); in your vauueChangeListener method to force the view to recreate.
Megan Stew

Joined: Jun 17, 2004
Posts: 4
Hi Tamas,

Did you able to fix the issue? I cant get it run anytime after trying the other inputs. Any thoughts?

Rajshekhar Anand

Joined: May 22, 2008
Posts: 14
add a4j:support to rich:comboBox.

roel croonenberghs

Joined: May 28, 2009
Posts: 10
I have the same problem. The onchange event is only triggerd when I do a sublit off my form. I want it to be triggered everytime i change something in teh combobox. How can I do it?
here's my code

MetaDataDetail CLASS;

When changing the combobox, the method changePerson is not triggerd. How can I trigger it?
If i replace the rich:comboBox with a h:selectOneListbox it works.

Kindest regards,


Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
A ValueChangeListener will only be called after a form submit so Tamas , you should have onclick="this.form.submit()" and your ValueChangeEvent will be fired.

Alternately, if you don't want a form submit then as Rajshekhar suggested use <a4j:support> , an example for this can be found at

RichFaces live demo
Danny Rankevich

Joined: Jan 10, 2011
Posts: 1
Actually, the correct syntax to invoke a submit on the combo value change is:

I agree. Here's the link:
subject: rich:comboBox valueChangeListener is not working
jQuery in Action, 3rd edition