You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2007/02/20 03:41:05 UTC

[jira] Closed: (TAPESTRY-1265) Using Map as model for a Select, unexpected results

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

Howard M. Lewis Ship closed TAPESTRY-1265.
------------------------------------------

    Resolution: Fixed

> 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
>         Assigned To: Howard M. Lewis Ship
>             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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org