Access bean method w/out submit

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Apr 2007
Posts: 25
Reputation: jmasta is an unknown quantity at this point 
Solved Threads: 0
jmasta jmasta is offline Offline
Light Poster

Access bean method w/out submit

 
0
  #1
Jun 10th, 2009
Hello everyone,

I have a table with a bunch of rows and columns. You choose an item, and then you can look at the properties of the item in a popup window. You can change some properties and then save, or you can cancel. If you cancel, the window should just close and the main page with the table should not refresh. However, I need to call the destroy method in the backing bean, otherwise when you choose a new item it displays the information of the last one.

Right now, when you close the popup, I have javascript grabbing a hidden <h:commandLink> with the bean's destroy method as the action and then click it. This submits the page, causing a refresh.

My question: Is there a way (using AJAX, or something else) to invoke a method from the backing bean without submitting the page?

Thank you,
Jmasta
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC