Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3652

Provide a Typesafe Panel, that allows to use getDefaultModel and getDefaultModelObject without casting

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC3
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              splitshade Martin Dilger
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: