You could override WebApplication#newAjaxRequestTarget to add a listener to
each target. You can look at AjaxRequestTarget#getComponents() to see if
your list is there, and maybe add more stuff. Sounds messy though, since
that's an application-wide listener. Maybe you could generate an event if
any of the ART's components implement some marker interface, and have your
other components consume the event and add themselves if necessary.

On Fri, Sep 30, 2011 at 4:18 PM, Nelson Segura <nsegu...@gmail.com> wrote:

> I wonder if anyone has ideas on how to add a component to an
> AjaxRequestTarget if another related component is added to it.
> I am thinking about my Ajax List, there are several ways it can be
> added to a request target: sorting, filtering, paging, etc.
> I have another components that displays data related to the list, but
> displayed outside the list. Is there a way I can detect that the list
> is being refreshed using Ajax, and add those other components to the
> target?
>
> -Nelson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to