The main point I could object is that you might have panels that are not "associated" to a model... and then you will still have to pass a model object type to avoid unchecked warnings... I know I could always use Panel<Void>, or Panel<Object>, but as a user I would not like to be forced to do that all the time... and for the cases where you really need it you can do what Stefan suggests.
Best, Ernesto On Wed, Sep 9, 2009 at 1:24 PM, garz <g...@gmx.net> wrote: > > i want the getModelObject() (which is in fact the getDefaultModelObject()) > to > return the actual type that i dont need to do unchecked casts. i'm just > wondering, now that everything uses generics, why does the panel do not use > generics? just want to understand the reason behind this. > > regards > garz > > > reiern70 wrote: > > > > What's the meaning you want to attach to the "missing" generic parameter? > > Best, > > > > Ernesto > > > > On Wed, Sep 9, 2009 at 12:23 PM, Kurt Zitze <g...@gmx.net> wrote: > > > >> hey, > >> > >> why does the panel is not using generics for type safety? > >> > >> regards > >> -- > >> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 > >> - > >> sicherer, schneller und einfacher! > http://portal.gmx.net/de/go/atbrowser > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Panel-not-using-generics-tp25362188p25362915.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >