Hi Allen, This information will be available in Wicket 6.0 where Wicket Ajax is improved. For 1.5 you can try with registering click event listener in the capturing phase and extract the clicked element from event.target(srcElement). But I guess IE<9 will fail you with this approach.
On Thu, Dec 29, 2011 at 8:48 AM, Allen Gilbert <[email protected]> wrote: > 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 <[email protected]>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 <[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] >> >> -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
