File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes a4j and javascript interaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "a4j and javascript interaction" Watch "a4j and javascript interaction" New topic

a4j and javascript interaction

Michael Power

Joined: May 13, 2008
Posts: 2
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

Joined: Jun 25, 2001
Posts: 17410

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: a4j and javascript interaction
It's not a secret anymore!