Thanks Peter, that looks like what I was after, albeit at an even higher level. :)
On Fri, Apr 24, 2009 at 12:05 AM, Peter Ertl <[email protected]> wrote: > 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 <[email protected]> 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: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
