In spring MVC, I would do the following, <c:forEach items="myList" value="myItem"> <form:select path="myMap[myItem.name]" items="${myItem.values}"/> </c:forEach>
How do I do the same in Tapestry? I tried the following, but obvisously it didn't work because the Select field is not capable of setting a value in a map. @Component (parameters = {"source=myList", "value=myItem", "encoder=itemPrimaryKeyEncoder", "index=index"}) private Loop myListLoop; @Component (parameters = { "model=itemSelectModel", "encoder=itemValueEncoder", "value=selectedItem[index]"}) private Select myItemSelectField; @Property private int index; @Property private Item myItem; @Property private Map<Integer, Item> selectedItem = new HashMap<Integer, Item>(); I took a look at the sources of AjaxFormLoop and also PagedLoop in Chenille Kit, but I couldn't figure it out. Any thoughts? Dave --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org