• 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

AJAX with JSF issues on selectone menu

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

<h:selectOneMenu id="disp" binding="#{myBean.firstMenu}" valueChangeListener="#{changeBean.changesecondMenu}">
<f:selectItems value="#{changeBean.firstMenuItems}" />
<a4j:support event="onchange" immediate="yes" reRender="selids" ajaxSingle="true"></a4j:support>
</h:selectOneMenu>


<h:selectOneMenu id="selids" binding="#{changeBean.secondMenu}">
<f:selectItems value="#{changeBean.secoondMenuItems}" />
</h:selectOneMenu>

I have two dependent drop downs, my first menu contains all the cities on change I need to get counties.

If i use directly onChange="Submit" it is working fine but my entire page is getting refreshed.

When I use ajax my valueListener method is not getting called.

Can somebody explain me what can be the issue, I am very new to jsf and ajax. Please help .

Thanks in advance
Kalam

 
chandra chatterjee
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it resolved need to put between <a4j:region>

Thanks
kalam
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic