I'm using webwork 1.4 and @status should be @status/index, typo on my part.
I'm using the IteratorStatus to get an index for the current item.


----- Original Message ----- 
From: "Patrick Lightbody" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: December 09, 2003 10:19 PM
Subject: RE: [OS-webwork] Can I concatenate text in the name attribute?


> I'm not sure what @status means... do you mean #status?
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Eric Mckenna
> Sent: Tuesday, December 09, 2003 12:54 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] Can I concatenate text in the name attribute?
>
> 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
>
>
> -------------------------------------------------------
> 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
>



-------------------------------------------------------
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