« 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 Jan Kriesten :: Rate this Message:

Reply to Author | View in Thread


Hi Sebastiaan,

> I *really* would like to see a clarification of this statement. In
> Wicket the component and model are very tightly coupled.

that's part of the problem, agreed.

> What is a *good
> design* alternative, where only IModel is generified? getModelObject()
> returns Object? getModel returns IModel<?>?

IMHO the practical solution would be to leave generics from components and have
getModelObject return Object, yes. On certain components (ListView e.g.), those
methods may be overridden by more concrete implementations.

Regards, --- Jan.

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