Problem:
I have an AjaxButton that triggers a long-running operation when clicked. I
want to give feedback (in form of a javascript message) upon partial completion
of the operation, therefore I am using a jQuery notifications plugin
(http://www.programmingmind.com/contributions).
So, what I do is the following:
final Form form = new Form("form");
add(form);
form.add(new AjaxButton("button) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
for(Object o : someList) {
// do somthing
target.appendJavascript(getJavascript());
}
target.addComponent(form);
}
});
... but obviously, the Javascript messages are only display at the end of the
complete operation (after foreach loop has finished). So my question: what
should I do to get the messages displayed after each iteration?
-Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]