As Sven has pointed out your code should work as it is. Try yo see if
you have any kinds of JavaScript errors using a JavaScript console or a
tool like FireBug
Hi,
I pasted you #updateAjaxAttributes() into ChoicePage from
wicket-examples and alert shows up there.
Sven
On 06/04/2013 05:02 PM, heikki wrote:
// this doesn't do anything
@Override
protected void updateAjaxAttributes(AjaxRequestAttributes
attributes) {
super.updateAjaxAttributes(attributes);
IAjaxCallListener listener = new AjaxCallListener() {
@Override
public CharSequence getCompleteHandler(Component
component) {
return "alert('onComplete');";
}
};
attributes.getAjaxCallListeners().add(listener);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org