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
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
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
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
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,
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
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
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