Then we are on the same page with one thing... some level in the
component hierarchy would have to be generic.

Your original example specified "T getModel()" - you must have meant "T
getModelObject()" ;o)

-----Original Message-----
From: Jan Kriesten [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 02, 2008 12:34 PM
To: users@wicket.apache.org
Subject: Re: users, please give us your opinion: what is your take on
generics with Wicket


hi william,

> Enlighten me with an example

just like that:

Component { public object getModelObject(){ ... } } FormComponent<T>
extends Component { public T getModelObject() { ... } }

regards, --- jan.


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

Reply via email to