Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a4j:support onchange event not firing

 
Floyd Montgomery
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm having a little problem with an a4j:support tag which is not firing.





When I select a country (placeCountry), the first a4j:support fires the onclick event and then rerenders the selectTown selectOneMenu, which then displays a town.
Now as the selectTown changes, it should fire the onchange event and rerender placesFound... but it does not.


Any help would be appreciated
Thanks : o)
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4435
256
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"zzzer zzer", please check your private messages regarding an important administrative matter.
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you reRender selectTown, you are changing the value on the server. It's not a client event, so nothing gets triggered on the client. You would need to actually change the value in selectTown for the Ajax request to be fired. Hope this helps.

You could try and play with oncomplete attribute and a4j;jsFunction to fire the next Ajax request.

 
Floyd Montgomery
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved:


on the first

on the second

on the third


Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic