See IAjaxCallDecorator. Each Ajax component can decorate its ajax call with pre- and post- conditions. To remove the indicator use onSuccess and onFailure callbacks
On Thu, Dec 29, 2011 at 12:41 AM, Allen Gilbert <[email protected]> wrote: > Hello, > > I have a Panel containing many child components that perform various ajax > actions. Whenever an ajax request is initiated from the panel or any of > its children, I'd like to show an indicator on the panel and block user > interaction with it. However, I don't want the indicator to be shown for > ajax requests initiated by other components on the page. Is there a way to > access the context of an ajax request in a javascript pre- or post-ajax > call handler in order to determine what component is initiating the > request? Looking at wicket-ajax.js, there doesn't seem to be. > > Alternatively, is there a way to decorate all ajax request javascript for a > panel's child components? I'd like to avoid having to modify every ajax > behavior of the Panel's child components in order to show the activity > indicator on the panel. > > -Allen -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
