• Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding ValueChangeListener on Custom Component

 
Birte Battenburg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i have an HtmlSelectOneMenu and want to add an ValueChangeListener, which should react when value is cahnged on the select box. my problem is, that indeed an instance of the ValueChangeListener is created, but no event arises when value is changed.
here is the java code:

Thanks for helping
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Birte Battenburg:
my problem is, that indeed an instance of the ValueChangeListener is created, but no event arises when value is changed.
here is the java code:


When the value of your component changes, the valueChange event is only queued and fired only when you submit your form.
So you need to submit the form to get the event fired.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!