The form is dynamically generated, so the amount of items in the form are not known
until runtime.


Daniel Harfleet <[EMAIL PROTECTED]> wrote:
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
> }



Start your day with Yahoo! - make it your home page

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




SPONSORED LINKS
Web site design development Software design and development Macromedia flex
Software development best practice


YAHOO! GROUPS LINKS




Reply via email to