• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ValueChangeListener in JSF

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Currently I'm trying to create dynamically several components (HtmlSelectOneMenu) and display them. This part is working fine. But now I'm trying to add a ValueChangeListener to each of those components but somehow this listener does not get called. I tried several things (including a class that implements the ValueChangeListener interface) but it is still not working.



So far this is what I got but somehow the processValueChange-Function does not get called. I read that you have to submit the form first and after that you get the valueChangeEvent but also this doesn't seem to work.

Does someone have an idea? I'm actually trying to get the event when the value is changed (don't want to submit the form) and I'm using richfaces and ajax (but this is the next step).

EDIT:
ok it seems to be the h:head attribute that causes the problem. So my question is: Does someone have an idea on how you can set AjaxBehavior on a dynamically created component?

Thanks...
reply
    Bookmark Topic Watch Topic
  • New Topic