You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by avrahamr <av...@gmail.com> on 2010/07/26 11:15:39 UTC

Re: IVisitor and IFormModelUpdateListener not extending Component

You can still visit all components and "manually" check if it is an
instanceof IFormModelUpdateListener

On Mon, Jul 26, 2010 at 12:10 PM, Joseph Pachod [via Apache Wicket] <
ml-node+2302070-350349768-293983@n4.nabble.com<ml...@n4.nabble.com>
> wrote:

> hello
>
> I wanted to do an Component.IVisitor for all children components
> implementing IFormModelUpdateListener.
>
> However, IVisitor requires something extending Component, which
> IFormModelUpdateListener can't do (it's an interface).
>
> As such, I had to dump all generics info and do instanceof to get it
> running.
>
> However, for wicket 1.5 I guess, shouldn't there be an IComponent
> interface that IFormModelUpdateListener would implement ? IVisitor would
> then be of <T extends IComponent> and I could do an
> IVisitor<IFormModelUpdateListener>.
>
> What's your pick on that ?
>
> ++
>
> --
> Joseph Pachod
> IT
>
> THOMAS DAILY GmbH
> Adlerstraße 19
> 79098 Freiburg
> Deutschland
> T  + 49 761 3 85 59 506
> F  + 49 761 3 85 59 550
> E  [hidden email] <http://user/SendEmail.jtp?type=node&node=2302070&i=0>
> www.thomas-daily.de
>
> Geschäftsführer/Managing Directors:
> Wendy Thomas, Susanne Larbig
> Handelsregister Freiburg i.Br., HRB 3947
>
> Registrieren Sie sich unter https://www.thomas-daily.de/user/sign-in für
> die TD Morning News, eine kostenlose Auswahl aktueller Themen aus TD
> Premium, morgens ab 9:15 in Ihrer Mailbox.
>
> Aktuelle Presseinformationen für die TD Morning News und TD Premium nimmt
> unsere Redaktion unter [hidden email]<http://user/SendEmail.jtp?type=node&node=2302070&i=1>entgegen.
> Redaktionsschluss für die TD Morning News ist täglich um 8:45.
>
> Register free of charge at https://www.thomas-daily.de/user/sign-in to
> have the TD Morning News, a selection of the latest topics from TD Premium,
> delivered to your mailbox from 9:15 every morning.
>
> Our editorial department receives the latest press releases for the TD
> Morning News and TD Premium at [hidden email]<http://user/SendEmail.jtp?type=node&node=2302070&i=2>.
> The editorial deadline for the TD Morning News is 8.45am daily.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=2302070&i=3>
> For additional commands, e-mail: [hidden email]<http://user/SendEmail.jtp?type=node&node=2302070&i=4>
>
>
>
> ------------------------------
>  View message @
> http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302070.html
> To start a new topic under Wicket - User, email
> ml-node+1842947-1647783149-293983@n4.nabble.com<ml...@n4.nabble.com>
> To unsubscribe from Wicket - User, click here<http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=>.
>
>
>


-- 
[]'s
Avraham Rosenzweig
avrahamr@gmail.com

-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IVisitor-T-extends-Component-and-IFormModelUpdateListener-not-extending-Component-tp2302070p2302075.html
Sent from the Wicket - User mailing list archive at Nabble.com.

Re: IVisitor and IFormModelUpdateListener not extending Component

Posted by Joseph Pachod <jp...@thomas-daily.de>.
avrahamr wrote:
> You can still visit all components and "manually" check if it is an
> instanceof IFormModelUpdateListener
>   
that's what I did , dumping generics info on the way

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