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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5-RC3
    • 1.5-RC5
    • wicket
    • 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

        There are no Sub-Tasks for this issue.

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            splitshade Martin Dilger
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: