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

a4j and javascript interaction

 
Michael Power
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsf page which uses a4j to dynamically repopulate(or add to) a selectlist. The list rerenders fine but calling a javascript function (via button) which looks up the select list doesn't work (maybe because the view is updated but not the page source?). Can anyone tell me how i can get javascript to find rerendered components or get ajax to call javascript?

Tried using <a4j:jsFunction> and <a4j:commandButton> but can't get them to work. Thanks
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18164
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Javaranch!

I'm not sure I understand. A4J is part of RichFaces now, and RichFaces can dynamically update a table without the need for any developer-supplied Javascript - it creates all the necessary code invisibly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic