if you use a propertymodel alongside a formcomponent then yes, but it is not the generic you declare that is used, it is the model performing a runtime reflection check on the type of getter/field it is using.
-igor On Tue, Mar 17, 2009 at 12:08 PM, Adriano dos Santos Fernandes <[email protected]> wrote: > Igor Vaynberg escreveu: >> >> textfield doesnt know that it has been declared as textfield<integer> >> at runtime unless it is an anonymous class. welcome to java generics. >> lookup type erasure. > > Hmm... And what about work done using IObjectClassAwareModel? > > It seems to work for me, I never need to pass Integer.class to > TextType<Integer>... > > > Adriano > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
