Override getAjaxCallDecorator and in the returned
IAjaxCallDecorator#decorateScript you can return your custom
javascript.
Maurice
On Tue, Apr 1, 2008 at 11:17 PM, Pinger <[EMAIL PROTECTED]> wrote:
>
> I have an ajaxbutton I make like this
>
> AjaxButton newPositionButton = new AjaxButton("addPosition") {
>
> @Override
> protected void onSubmit(AjaxRequestTarget target, Form form) {
> //Do Stuff
> }
> };
>
>
> I want to get a Yes/No confirm dialog, so I only "Do Stuff" if they say
> yes..
>
> Thanks
>
> P.S.
> I like wicket.. coming from Asp.net, I prefer it to the other java web
> frameworks :)
> --
> View this message in context:
> http://www.nabble.com/Make-a-Ajax-button-have-a-confirm-dialog-tp16425091p16425091.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]