Uploaded image for project: 'Stripes'
  1. STS-835

<stripes:options-enumeration>, inner class enums and internationalized labels

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: Release 1.5.6
    • Fix versions: Release 1.5.7, Release 1.6
    • Components: Tag Library
    • Labels:
      None
    • Environment:
      (not relevant)
    • Sprint:

      Description

      I have an enum that is an inner class of another class, <stripes:options-enumeration enum="my.package.MyClass.MyEnum" /> correctly locates the enum (whose .class name MyClass$MyEnum), but then it tries to looks for my.package.MyEnum.VALUE (instead of "my.package.MyClass.MyEnum.VALUE" or "my.package.MyClass$MyEnum.VALUE") in StripesResources.properties.

      The problem seems to be in net.sourceforge.stripes.tag.InputOptionsEnumerationTag, where the label is looked up with:

      label = LocalizationUtility.getLocalizedFieldName(clazz.getSimpleName() + "." + item.name(), packageName, null, locale);

        Attachments

          Activity

            People

            • Assignee:
              bengunter BenB
              Reporter:
              giorgiga giorgiga
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: