That's perfectly doable: put the loading indicator on top of the blocking
div.

On Thu, Dec 29, 2011 at 5:28 PM, Allen Gilbert <[email protected]>wrote:

> Ernesto,
>
> Interesting...I've only used IAjaxIndicatorAware to display a loading gif,
> but it might solve this problem if I can get it to nicely show and hide a
> div that a) blocks the user from interacting with my panel and b) shows a
> loading indicator.  I'll try it out.  Thanks!
>
> -Allen
>
> On Thu, Dec 29, 2011 at 3:40 AM, Ernesto Reinaldo Barreiro <
> [email protected]> wrote:
>
> > Allen,
> >
> > Isn't it possible to make the panel implement IAjaxIndicatorAware?
> >
> > Regards,
> >
> > Ernesto
> >
> > On Wed, Dec 28, 2011 at 11:41 PM, 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
> > >
> >
>

Reply via email to