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

                 Key: TAPESTRY-1597
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1597
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0
            Reporter: Nick Westgate


Same thing as the Map problem, but a one liner:

org.apache.tapestry.internal.TapestryInternalUtils, line 234:

    public static OptionModel toOptionModel(Object input)
    {
        String value = (input != null ? String.valueOf(input) : "");

        return new OptionModelImpl(value, false, value); // <-- should be 
value, false, input (and perhaps rename value to label for consistency)
    }

Cheers,
Nick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to