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

EnumLabel misbehaves with anonymous enum

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.5
    • 1.4.6, 1.5-M1
    • wicket
    • None

    Description

      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();
      }

      Attachments

        Issue Links

          Activity

            People

              jdonnerstag Juegen Donnerstag
              slonopotamus Marat Radchenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: