That would work, but then I could not use webwork's validation.
----- Original Message -----
From: "Cuong Tran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: December 10, 2003 3:49 PM
Subject: Re: [OS-webwork] Can I concatenate text in the name attribute?
>
> You can try:
>
> <ww:iterator value="someList" status="'status'">
> <input type="text" name="prefix[<ww:property
> value="@status/index"/>]" value="..."/>
> </ww:iterator>
>
>
> --- Eric Mckenna <[EMAIL PROTECTED]> wrote:
> > >
> > > Here's basically what im trying to achieve,
> > > <input type="text" name="child1[0].someName" value="123" />
> > >
> > > 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
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
>
> -------------------------------------------------------
> 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