Greetings,
Can someone help me understand what am I missing about indexed properties? I
have a rather odd legacy hash with integer keys. The values in the hash are
beans with a fair number of properties, including a list, which is used for
the HTML select element.
<c:forEach var="qa" items="${actionBean.user.aMap}" varStatus="status">
<s:select name="answer">
<s:options-collection collection="${qa.value.aList}"/>
</s:select>
<s:hidden name="keys[${status.index}]" value="${qa.key}"/>
</c:forEach>
In addition to the selected value I need to capture the key of the map
(qa.key), so I have created a List<String> property named "keys" in the
action bean, hoping it would use the indexed properties to bind to the hash
key values but it does not.
I even tried <s:hidden name="${actionBean.keys[${status.index}]}"
value="${qa.key}"/> but it did not help.
Also, when I declare the "answer" property as String[], it is bound, but if
I declare it as List<String> it does not! Why is that?
Thanks in advance!
-a
--
Aaron Stromas
Mobile: +1 703 203 9169
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users