Re: AjaxRequestTarget.IListener question

2014-02-05 Thread Martin Grigorov
Hi,

org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond() is
called after the action phase (e.g. onEvent, onSubmit) and before the
rendering.
Sounds like what you need.

Martin Grigorov
Wicket Training and Consulting


On Wed, Feb 5, 2014 at 4:09 PM, Tom Götz t...@decoded.de wrote:

 Hi there,

 I’d like to add something to the AjaxRequestTarget at the very end“, i.e.
 I need to be the last one to add something to the target (because I need to
 check some preconditions that might change if the target is manipulated
 later on).

 Reading the Javadoc of
 org.apache.wicket.ajax.AjaxRequestTarget.IListener#onAfterRespond I learned
 that adding components at that stage is already too late. Is there an
 alternative to AjaxRequestTarget.IListener that might do the job?

 Cheers,
-Tom



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




Re: AjaxRequestTarget.IListener question

2014-02-05 Thread Tom Götz
Ok, I was misinterpreting the Javadoc of 
org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond: Triggered 
before ajax request target begins its response cycle“. That sounded to me as it 
was called *before* the action phase …

Thanks for the hint, I will try that.

Cheers,
   -Tom


On 05.02.2014, at 16:12, Martin Grigorov mgrigo...@apache.org wrote:

 Hi,
 
 org.apache.wicket.ajax.AjaxRequestTarget.IListener#onBeforeRespond() is
 called after the action phase (e.g. onEvent, onSubmit) and before the
 rendering.
 Sounds like what you need.
 
 Martin Grigorov
 Wicket Training and Consulting
 
 
 On Wed, Feb 5, 2014 at 4:09 PM, Tom Götz t...@decoded.de wrote:
 
 Hi there,
 
 I’d like to add something to the AjaxRequestTarget at the very end“, i.e.
 I need to be the last one to add something to the target (because I need to
 check some preconditions that might change if the target is manipulated
 later on).
 
 Reading the Javadoc of
 org.apache.wicket.ajax.AjaxRequestTarget.IListener#onAfterRespond I learned
 that adding components at that stage is already too late. Is there an
 alternative to AjaxRequestTarget.IListener that might do the job?
 
 Cheers,
   -Tom
 
 
 
 -
 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