Re: Component detecting Ajax update

2013-11-04 Thread Bas Gooren
And from within the component itself you can override onEvent and handle the event whose payload is an AjaxRequestTarget. The component can then check if it's in the getComponents() collection of said target. e.g. @Override public void onEvent( IEvent ? event ) { Object

Re: Component detecting Ajax update

2013-11-03 Thread Martin Funk
traveling down the implementations of AjaxRequestTarget.add AjaxRequestHandler public void add(Component... components) one comes across to: AbstractAjaxResponse.add((final Component component, final String markupId) I don't see code that signals the Component that it was added to an

Re: Component detecting Ajax update

2013-11-03 Thread Martin Grigorov
Hi, You can use org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond(MapString, Component map, AjaxRequestTarget) to be notified before ART starts preparing its XML response. The 'map' contains all already added components. On Fri, Nov 1, 2013 at 3:45 PM, Nick Pratt

Component detecting Ajax update

2013-11-01 Thread Nick Pratt
Is there a way for a Component to detect if its been added to an AjaxRequestTarget? N

Re: Component detecting Ajax update

2013-11-01 Thread vineet semwal
see AjaxRequestTarget#getComponents() On Fri, Nov 1, 2013 at 7:15 PM, Nick Pratt nbpr...@gmail.com wrote: Is there a way for a Component to detect if its been added to an AjaxRequestTarget? N -- regards, Vineet Semwal