traveling down the implementations of 

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 

it just seems to end up in an HashMap of AbstractAjaxResponse

markupIdToComponent.put(markupId, component);

So my guess is, that the component itself can't detect that it was added.

If you are serious about it, maybe deriving form AjaxRequestHandler and than 
hooking the derived Handler up into the Application might help.

At least the Application has a setter for the AjaxRequestTargetProvider:
        protected void internalInit()

Though I'm not sure if that is an ok path, maybe someone else has a better idea.


Am 01.11.2013 um 14:45 schrieb Nick Pratt <>:

> Is there a way for a Component to detect if its been added to an
> AjaxRequestTarget?
> N

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to