[ 
https://issues.apache.org/jira/browse/WICKET-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marat Radchenko updated WICKET-2641:
------------------------------------

    Component/s: wicket

> EnumLabel misbehaves with anonymous enum
> ----------------------------------------
>
>                 Key: WICKET-2641
>                 URL: https://issues.apache.org/jira/browse/WICKET-2641
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.5
>            Reporter: Marat Radchenko
>
> Same problem as was with EnumChoiceRenderer (see WICKET-2609)
> protected String resourceKey(T value)
> {
>       return value.getClass().getSimpleName() + "." + value.name();
> }
> should be changed to:
> protected String resourceKey(T value)
> {
>       return value.getDeclaringClass().getSimpleName() + "." + value.name();
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to