I want to use panels in a generic way with no need to cast, if I use getDefaultModel and getDefaultModelObject.
This issue has been thoroughly discussed, and thats why Panel is currently not implemented using generics.
Please provide a class TypedPanel instead, that can be used interchangeably with Panel itself.
The Implementation could provide the following Methods:
public T getDefaultModel()
public T getDefaultModelObject()
That would make usage of typed panels much more cleaner.
|Fix Generic(Panel|WebPage)'s getModel() method||Resolved|