You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Marat Radchenko (JIRA)" <ji...@apache.org> on 2009/12/25 11:01:29 UTC

[jira] Created: (WICKET-2641) EnumLabel misbehaves with anonymous enum

EnumLabel misbehaves with anonymous enum
----------------------------------------

                 Key: WICKET-2641
                 URL: https://issues.apache.org/jira/browse/WICKET-2641
             Project: Wicket
          Issue Type: Bug
    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.


[jira] Updated: (WICKET-2641) EnumLabel misbehaves with anonymous enum

Posted by "Marat Radchenko (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (WICKET-2641) EnumLabel misbehaves with anonymous enum

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-2641.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5-M1
                   1.4.6
         Assignee: Juergen Donnerstag

thanks

> 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
>            Assignee: Juergen Donnerstag
>             Fix For: 1.4.6, 1.5-M1
>
>
> 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.