aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "a4j and javascript interaction" Watch "a4j and javascript interaction" New topic
Author

a4j and javascript interaction

Michael Power
Greenhorn

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: 15665
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a4j and javascript interaction
 
Similar Threads
Backing Bean Behaviour on MyFaces using A4J
Richfaces Scrollable Datatable with filtermethod not working
JSP as XML is rendered on the browser after session timeout and then login again
forms authentication (j_security_check) with JSF
I need help with ajaxSingle, reRender and immediate.