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
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
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
Is there a way for a Component to detect if its been added to an
AjaxRequestTarget?
N
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