THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
... new AjaxLink("link") { protected onClick(AjaxRequestTarget target) { ...} protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return "alert('This is my javascript call'); " + script; } } } } ... |
An alternative approach:
Code Block |
---|
link.add(new AttributeAppender("onclick", new Model("alert('This is my JS script');"), ";"));
|
Also see HOWTO do Javscript call after each Wicket AJAX update