I'm using version 6 of Wicket. Meanwhile I have found a solution. I
split the interaction in two requests:
|AjaxButton confirmButton= new AjaxButton("confirmButton", layoutForm) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
super.onSubmit(target, form);
System.out.println("Second");
}
};
confirmButton.add(new AjaxEventBehavior("onclick") {
@Override
protected void onEvent(AjaxRequestTarget target) {
System.out.println("First");
}
});|
Am 08.03.2013 12:53, schrieb Andrea Del Bene:
Which version of Wicket are you using? Maybe you can do what you want
with an AJAX listener.
Hello,
I would like to react on the onSubmit-method of an AjaxButton or
normal Button. The problem is, I would like to make a panel (a
customized progressbar) visible and after this there should be
internal work and when it is finished, there should be a change to
another page. If I try to put it all in the onSubmit-method then the
calculation is done and the page is changed at the end of the
request, but the panel is not changed to be visible before, because
Wicket does it all in one request? If I change the visibility via an
AjaxButton and do the calculation and the page change in an extra
thread, then the panel is visible, the calculation is done, but the
page change with setResponsePage does not work, because the request
is already finished? How could I get the requested behaviour? Is
there a possibility to add an AjaxOnChange-Listener to the panel,
which reacts if the panel switches to visible or is there another
good way?
Thank you in advance,
Micha
---------------------------------------------------------------------
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