| | |
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
![]() |
•
•
Join Date: Apr 2007
Posts: 25
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- MS Access vs. MySQL (MS Access and FileMaker Pro)
- how to call one bean method from other bean in JSP (JSP)
- can a class grant access to a friend method of friend class? (C++)
- How to call a EJB method from Session bean method (Java)
- java bean (JSP)
- Insert radio button value into MS Access database (ASP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: "Automation server can't create object"
- Next Thread: how to do interactive form validation
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array beta box browser captchaformproblem cart child class close codes column css date debugger decimal dependent design disablefirebug dom download editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe index java javascript javascripthelp2020 jquery jsf jsp jump libcurl listbox maps masterpage math media menu microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php player position post problem programming prototype redirect safari scale scriptlets scroll search security select software toggle unicode variables w3c web window windowofwords \n





