Thanks Mathias!
Here is the way that worked for me.
regallowed.add(new AjaxFormComponentUpdatingBehavior("onclick"){
@Override
protected IAjaxCallDecorator getAjaxCallDecorator()
{
return new AjaxPreprocessingCallDecorator(super.getAjaxCallDecorator())
{
@Override
public CharSequence preDecorateScript(CharSequence script)
{
return "if(!confirm('" + warnMessage.getObject()
+ "')) return false;}" + script;
};
}
}
});
Mathias P.W Nilsson wrote:
>
> See this link
> http://javathoughts.capesugarbird.com/2008/01/wicket-13-ajax-button-with-confirmation.html
> warning dialog
>
--
View this message in context:
http://www.nabble.com/How-to-pop-a-warning-dialog-box-when-clicking-a-checkbox-tp16058046p16146531.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]