Greetings,

I have a form that creates some child objects, so the form has repeated form
values.  I'm trying to add some other text (a prefix) in the name tag to
distinguish each child's values from one another, hence the status tag and
prefix.
Here's basically what im trying to achieve,
<input type="text" name="child1[0].someName"   value="123" />
<input type="text" name="child1[1].someName"   value="456" />
<input type="text" name="child1[2].someName"   value="789" />
...


<input type="text" name="child2[0].someName"   value="012" />
<input type="text" name="child2[1].someName"   value="123" />
<input type="text" name="child2[2].someName"   value="234" />
...

I started with using the status tag on iterator:
<ww:iterator value="someList" status="'status'">
    <ww:textfield="'LabelName'" name="[EMAIL PROTECTED]"
value="someValue/>
</ww:iterator>

<ww:iterator value="someList" status="'status'">
    <ww:textfield="'LabelName'" name="[EMAIL PROTECTED]"
value="someValue/>
</ww:iterator>

I've tried several different methods to get the name to resolve correctly.
i.e.
name="'prefix['@status'].someName'"
name="'[EMAIL PROTECTED]'"
name="'[EMAIL PROTECTED]'"
name="prefix[{'@status'}].someName"
but nothing seems to work.

Am I missing something?  Does an expression only get resolved in value
attributes?

thanks,
eric



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to