Will your form have a fixed amount of 'name' inputs, or will the user
keep adding inputs by clicking a button (or similar) ?

dan



--- In [email protected], "cruegger2000" <[EMAIL PROTECTED]>
wrote:
> I want to have a form on the client side that accepts
> a list of items of the same type/meaning, for example people's names.
> I would then send a value object to a server side Delegate object 
> using the <mx:RemoteObject> construct.
>  
> However, I don't know how to indicate that a form variable
> is an "array" without getting duplicate component id errors.
> In essence, I want to do what is shown below. How can I have a 
> "vector" form variable using Flex?
> Thanks in advance.
> 
> mxml file:
> <mx:Form>
> <mx:FormItem label="name1">
>   <mx:TextInput id="name"/>
> </mx:FormItem>
> 
> <mx:FormItem label="name2">
>   <mx:TextInput id="name"/>
> <mx:FormItem>
> 
> <mx:FormItem label="name3">
>   <mx:TextInput id="name"/>
> </mx:Form>
> 
> 
> Client side value object:
> -------------------------
> class Foo
> {
>   public var names: Array;
> }
> 
> 
> Server Side value object:
> -------------------------
> public class Foo
> {
>   private String[] names; (or List)
>   
>   // accesors
> }




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to