Whoa, I just noticed in the docs where you have pointed out, it says NOT
to use the [] syntax, but to used (). I've always used the [] syntax,
I'm on struts 2.0.11. Can anyone clear that up? The bracket syntax has
always worked fine for me. I've done stuff like this in the past:
<s:iterator value="ruleSets" status="status" id="myset">
<s:iterator value="rules" id="myrules" status="rulesStat">
<s:textfield
name="ruleSets[%{#status.index}].rules[%{#rulesStat.index}]" />
</s:iterator>
</s:iterator>
This assumes a "point" would be some kind of convertable type, like String, boolean,
whatever. If not you'd add ".whateverProperty" to the end of the name.
Torsten Krah wrote:
Am Donnerstag, 9. Oktober 2008 18:46:45 schrieb Adam Lister:
I've also heard that there is a generics-based type converter that might
solve this assuming you properly annotate the lists?
I'am using typed lists, so @Element should not be needed, shouldn't it?
What causing me headaches is that i am stuck naming my "name" property for
s:textfield.
I have got a List of RuleSets. A RuleSet gots a List Property with Rules.
Rules got Points.
I am able to print out those points like this:
<s:iterator value="ruleSets" status="status" id="myset">
<s:iterator value="rules" id="myrules">
<s:textfield value="%{points}" />
</s:iterator>
</s:iterator>
But i don't know how to name the name property of s:textfield to lets the
ParametersInterceptor write back changed values.
Docs tells this:
<s:textfield name="beanList(%{bean.id}).name" />
But how to stack this, i have no idea, i have tried many combinations but got
no success yet :-(
Any help appreciated.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]