Re: AjaxCallListener

2016-09-27 Thread durairaj t
Hi, I'm replacing "decorateScript(Component arg0,CharSequence script)" with "AjaxRequestAttributes#getSuccessHandler(Component component)" and "decorateOnSuccessScript(Component arg0,CharSequence script)" with "AjaxRequestAttributes# onSuccess(." *Is it correct?* On Mon, Sep 26, 2016 at

Re: AjaxCallListener

2016-09-27 Thread durairaj t
Based on the wicket 1.5 comments in IAjaxCallDecorator.java, I think, I may need to use "beforeSend" for "decorateScript" and "onSuccess" for "decorateOnSuccessScript". But I'm not sure. Any help? *Code snippet from wicket 1.5 IAjaxCallDecorator.java* /** * Decorates the script that performs t

Re: AjaxCallListener

2016-09-27 Thread Martin Grigorov
Hi, decorateScript() means "do something before and after". So you need IAjaxCallListener's onBefore() and onComplete() Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 27, 2016 at 4:11 PM, durairaj t wrote: > Based on the wicket 1.5 comments in IAjaxCa

Re: AjaxCallListener

2016-09-27 Thread durairaj t
Thank you! On Tue, Sep 27, 2016 at 10:21 AM, Martin Grigorov wrote: > Hi, > > decorateScript() means "do something before and after". > So you need IAjaxCallListener's onBefore() and onComplete() > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue,

Find a component corresponding to entity

2016-09-27 Thread Per Newgro
Hello *, I'm looking for an elegant solution to determine a component for an entity. Example: There is a person and two sub-types of it - Manager and Sportsman. The Manager can be listed in a listview by using a ManagerViewItem and the Sportsman by using a SportsmanViewItem. Currently I'm using

Re: Find a component corresponding to entity

2016-09-27 Thread Martin Grigorov
Hi, Wicket doesn't prescribe any way for this. You could use Spring, ServiceLoader, OSGi, static factory, ... Anything that makes sense in your application. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Sep 28, 2016 at 8:04 AM, Per Newgro wrote: > Hello

Re: Find a component corresponding to entity

2016-09-27 Thread Ernesto Reinaldo Barreiro
Per, I normally do it the static factory way.. but Spring might give you the advantage for testing (e.g in some situation just pass something that creates an empty panels, or anything else). As Martin said, this is not something Wicket cares about. On Wed, Sep 28, 2016 at 8:04 AM, Per Newgro wro

Aw: Re: Find a component corresponding to entity

2016-09-27 Thread Per Newgro
Thank you both for your statement. Per > Gesendet: Mittwoch, 28. September 2016 um 08:34 Uhr > Von: "Ernesto Reinaldo Barreiro" > An: "users@wicket.apache.org" > Betreff: Re: Find a component corresponding to entity > > Per, > > I normally do it the static factory way.. but Spring might give yo