Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1504

When a Map is converted to a SelectModel, the keys are converted unnecessarily to strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0
    • 5.0.5
    • tapestry-ioc
    • None

    Description

      Currently, there's code that turns the key values into strings (null becomes the empty string). This is not necessary, the Select component has no problems with nulls and objects) and, worse, screws up the check for the currently selected value (the string "123" never equals the Integer 123).

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: