Tapestry
  1. Tapestry
  2. TAPESTRY-565

Provide replacement for EnumPropertySelectionModel, based on JDK 1.5 Enums

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.1
    • Component/s: Framework
    • Labels:
      None

      Description

      Tapestry 3.0's EnumPropertySelectionModel was removed, because it was based on the commons-lang Enum class.

      With JDK 1.5 support for Enums, it would be nice to have a version of it back.

      This could be packaged (at least temporarily) with the annotations library.

        Activity

        Hide
        Jesse Kuhnert added a comment -

        Provided simple EnumPropertySelectionModel that uses actual native enum types.

        Show
        Jesse Kuhnert added a comment - Provided simple EnumPropertySelectionModel that uses actual native enum types.
        Hide
        Leonardo Quijano Vincenzi added a comment -

        Something important here is localization support. I don't know if this is the best way to do it, but at least de EnumPropertySelectionModel class should allow for bundles. We might define that as parameter, and use the FQ enum class + EnumName as the key.

        Comments on this?
        Seems fairly easy to do but nobody from the Tapestry team has commented on this issue here.

        Show
        Leonardo Quijano Vincenzi added a comment - Something important here is localization support. I don't know if this is the best way to do it, but at least de EnumPropertySelectionModel class should allow for bundles. We might define that as parameter, and use the FQ enum class + EnumName as the key. Comments on this? Seems fairly easy to do but nobody from the Tapestry team has commented on this issue here.
        Hide
        Adam Greene added a comment -

        Here is what I did for working with Enums. It probably needs some more work, but it's fairly straight forward.

        Show
        Adam Greene added a comment - Here is what I did for working with Enums. It probably needs some more work, but it's fairly straight forward.

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development