Skip to content Skip to sidebar Skip to footer

Wicket Ajaxbutton And Javascript Condition

I am new with Wicket framework, so I don't know if this is possible. I want that when I click on submit button of form (in Java it's AjaxButton) javascript confirmation dialog pops

Solution 1:

You should use an Ajax precondition:

https://cwiki.apache.org/confluence/display/WICKET/Getting+user+confirmation

Solution 2:

Or use a ModalWindow, if you don't like the Javascript confirm() look-and-feel (and who does? ;)

See for example here:

http://mysticcoders.com/blog/wicket-ajax-confirmation-modal-window/

Post a Comment for "Wicket Ajaxbutton And Javascript Condition"