Jul 28, 2009, 4:11 PM
[CLOSED] AjaxEvent vs AjaxMethod
ToolbarButton
1. Click Listener --> AjaxMethod
2. Click AjaxEvent
When is it better to use one over the other? Is it possible for buttons to share a listener or AjaxEvent? If I have 10 buttons, I want them to call the same serverside method and pass in the button's ID instead of creating 10 AjaxMethod/AjaxEvent. This is to minimize the amount of rendered scripts.
1. Click Listener --> AjaxMethod
2. Click AjaxEvent
When is it better to use one over the other? Is it possible for buttons to share a listener or AjaxEvent? If I have 10 buttons, I want them to call the same serverside method and pass in the button's ID instead of creating 10 AjaxMethod/AjaxEvent. This is to minimize the amount of rendered scripts.