Maybe these help...

- you can override WebApplication.newAjaxRequestTarget(Page page)
- you can use AjaxRequestTarget.addListener() to add listeners



Am 23.04.2009 um 13:45 schrieb Liam Clarke-Hutchinson:

Hi Martin,

Yeah, we've got a page that has an immediate child label that needs to
be refreshed on pretty much every Ajax request being generated by the
other children on the page..

We were trying to avoid passing a reference to the label to the other
children's constructors, as it smells bad and makes it hard to test.

Ultimately we've gone for the usual method of exposing an overrideable
method in the children for the parent to override where we can add the
label, but was just wondering if there was a way to get an event to
fire for the whole page - similar to how you can get DOM events
bubbling through various event handlers in the component hierachy.


Cheers,

Liam Clarke

On 4/23/09, Martin Funk <mafulaf...@googlemail.com> wrote:
Hi Liam,

what is it that you'd like to achieve?

On the server side, when executing protected abstract void
respond(AjaxRequestTarget target);
any component can be added to the target.

mf

Am 23.04.2009 um 00:43 schrieb Liam Clarke-Hutchinson:

Hi,

I have  page with several child components, and several of the
children update themselves using Ajax. Is it possible for the page to
register an Ajax listener that is called on the Ajax events of the
children?

Regards,

Liam Clarke

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to