[ 
https://issues.apache.org/jira/browse/TAPESTRY-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Gredler updated TAPESTRY-1265:
-------------------------------------

    Attachment: map-to-select-model.patch

Adds a Map -> SelectModel coercion.

> Using Map as model for a Select, unexpected results
> ---------------------------------------------------
>
>                 Key: TAPESTRY-1265
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1265
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: Daniel Gredler
>             Fix For: 5.0
>
>         Attachments: map-to-select-model.patch
>
>
> I'm not sure if using Maps is supported for the model of a Select component, 
> but when I use this Map:
>       Map map = new TreeMap();
>       map.put("id_a", "value_a");
>       map.put("id_b", "value_b");
>       map.put("id_c", "value_c");
>       return map;
> I get this HTML (notice the two extraneous squiggly brackets):
>       <select id="jurisdiction" name="jurisdiction"><option 
> value="{id_a">value_a<option value="id_b">value_b<option 
> value="id_c">value_c}</select>

-- 
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