Martin, I am familiar with IAjaxCallDecorator, and am using it extensively. However, in this case, I'm trying to avoid having to override getAjaxCallDecorator() in every Ajax-enabled component under my Panel. Instead, I'm trying to find a single place where I can decorate or pre- and post-process calls for the various ajax components in my Panel.
-Allen On Thu, Dec 29, 2011 at 12:25 AM, Martin Grigorov <mgrigo...@apache.org>wrote: > 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 <allen.gilb...@doane.edu> > 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >