« Return to Thread: users, please give us your opinion: what is your take on generics with Wicket

RE: users, please give us your opinion: what is your take on generics with Wicket

by whoover :: Rate this Message:

Reply to Author | View in Thread

Enlighten me with an example

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


hi william,

> Wouldn't that infer that the component has to have generics, or am I
> missing something here?

you miss something...

getModel/getModelObject would have to be non-final and overriden by the
specialized component (return types are covariant, so you can override
object with something more specific).

regards, --- jan.



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



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

 « Return to Thread: users, please give us your opinion: what is your take on generics with Wicket