[
https://issues.apache.org/jira/browse/WICKET-3652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038494#comment-13038494
]
Martin Grigorov commented on WICKET-3652:
-----------------------------------------
I like the idea. Additionally I think to add TypedPage which will extend from
WebPage.
Pages and Panels are the most often created custom components.
> Provide a Typesafe Panel, that allows to use getDefaultModel and
> getDefaultModelObject without casting
> ------------------------------------------------------------------------------------------------------
>
> Key: WICKET-3652
> URL: https://issues.apache.org/jira/browse/WICKET-3652
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Reporter: Martin Dilger
> Priority: Minor
> Attachments:
> 0001-TypedPanel-to-provide-TypeSafe-access-to-underlying-.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira