The most simple way is to implement IAjaxIndicatorAware interface on the component wish to display the indicator. For instance, if your page implements this interface, you will have a generic indicator for all ajax requests inside your page. Also, you can be more specific by implementing this interface only on a panel or a form... depends on your use-case.
Alex Thomas Götz wrote: > > 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28184788.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org