This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
. When I use this onclick event first the event returns false and the popup with confirmation occurs. When user click ok button function try to reinvoke onclick event and then function doesnt return false (because of special flag) and POST request is sent. The problem is that (when I use this onclick event) INVOKE APPLICATION and RENDER RESPONSE phases are invoked 2 times. Firstly everything is ok - the id parameter is set, and the second time parameter id is null. Can anybody help me to solve this problem ?
Joined: Dec 23, 2010
The problem was in jquery's trigger function. I have seen in firebug that there was 2 POST requests , one aborted. When I change the function to simple _button.click() instead of $(_button).trigger('click') everything works fine.