Roger wrote:
Hi
<s:iterator value="valueables" status="status">
<s:textfield name="valueables[%{#status.index}].description"/>
<s:property value="%{valueables[%{#status.index}].description}"/>
<s:property value="valueables[%{#status.index}].description"/>
</s:iterator>
The textfield property correctly displays the value , neither of the property
tags display anything at all. What's the correct syntax for the property
value attribute?
Regards
This is best, as its an iterator, for a for loop:
<s:iterator value="valueables">
<s:textfield name="description"/>
<s:property value="description"/>
</s:iterator>
The complication is that the iterator places a new object on the top of
the stage: the object returned by iterator.next, so it's first trying to
get valueables[i] from valueables[i], which is a waste of effort.
Anyway, using your syntax, these should work
<s:iterator value="valueables" status="status">
<s:textfield name="valueables[#status.index].description"/>
<s:property value="valueables[#status.index].description"/>
</s:iterator>
But I haven't check as its not the approach I'd use.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]