You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stefan Lindner (JIRA)" <ji...@apache.org> on 2008/12/12 20:21:44 UTC
[jira] Created: (WICKET-1977) Generics: IOptionRenderer vs
IChioceRenderer
Generics: IOptionRenderer vs IChioceRenderer
--------------------------------------------
Key: WICKET-1977
URL: https://issues.apache.org/jira/browse/WICKET-1977
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.4-RC1
Environment: Wicket 1.4 Trunk (Dec. 12, 2008)
Reporter: Stefan Lindner
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) {...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-1977) Generics: IOptionRenderer vs
IChioceRenderer
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-1977.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.4-RC2
Assignee: Igor Vaynberg
> Generics: IOptionRenderer vs IChioceRenderer
> --------------------------------------------
>
> Key: WICKET-1977
> URL: https://issues.apache.org/jira/browse/WICKET-1977
> Project: Wicket
> Issue Type: Bug
> Components: wicket-extensions
> Affects Versions: 1.4-RC1
> Environment: Wicket 1.4 Trunk (Dec. 12, 2008)
> Reporter: Stefan Lindner
> Assignee: Igor Vaynberg
> Fix For: 1.4-RC2
>
>
> 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) {...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.