Hi,
You can append a javascript to the AjaxRequestTarget something like:
ajaxRequestTarget.add(myPanelToUpdate);
ajaxRequestTarget.appendJavascript(alert('hello'););
Check:
http://www.mkyong.com/wicket/how-to-call-javscript-after-ajax-update-wicket/
Hope this is what you looking for.
You could over-ride getAjaxCallDecorator() on your AjaxButton. e.g.
protected IAjaxCallDecorator getAjaxCallDecorator() {
return new AjaxCallDecorator() {
public CharSequence decorateScript(CharSequence script) { return
window.open('http://www.google.com','newwindow'); + script; }};}
Hi!
What about PopupSettings, will I lose that?
**
Martin
2009/7/13 Juan Carlos Garcia M. jcgarc...@gmail.com:
Hi,
You can append a javascript to the AjaxRequestTarget something like:
ajaxRequestTarget.add(myPanelToUpdate);
ajaxRequestTarget.appendJavascript(alert('hello'););
Check: