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

Generics: IOptionRenderer vs IChioceRenderer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4-RC1
    • Fix Version/s: 1.4-RC2
    • Component/s: wicket-extensions
    • Labels:
      None
    • Environment:
      Wicket 1.4 Trunk (Dec. 12, 2008)

      Description

      The definition of IOptionRenderer is

      Interface IOptionRenderer<T>
      java.lang.String getDisplayValue(java.lang.Object object)

      the definition of IChoiceRenderer is

      Interface IChoiceRenderer<T>
      java.lang.Object getDisplayValue(T object)

      Why is the parameter getDisplayValue method of IOptionRenderer an Object and not of Type T? The method should be

      Interface IOptionRenderer<T>
      java.lang.String getDisplayValue(T object)

      and the method getModel should be

      public IModel<ComServerBean> getModel(Tvalue) {...

        Attachments

          Activity

            People

            • Assignee:
              ivaynberg Igor Vaynberg
              Reporter:
              stefan lindner Stefan Lindner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: