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] < [email protected]<ml-node%[email protected]> > 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 > [email protected]<ml-node%[email protected]> > To unsubscribe from Wicket - User, click > here<http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=YXZyYWhhbXJAZ21haWwuY29tfDE4NDI5NDd8LTEwNzY0NzQ1ODc=>. > > > -- []'s Avraham Rosenzweig [email protected] -- 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.
