Hi all,

In my case, I have two kinds of value object, an input value object 
and a submit form.

<mx:Script>
        Import my.vo.InputVO;
        function init(){
                inputVo:InputVO = new InputVO();
                inputVo.name = ¡¥test¡¦;
}
        function submit(){
                inputVo.name = name.text;
                ¡K..
}

</mx:Script>
<mx:Form id="inputForm">
  <mx:FormItem label="FirstName" required="true">
    <mx:TextInput id="name" value="{inputVo.name}" />
  </mx:FormItem>
</mx:Form>

If there were only a few input fields, the question is very simple. 
I could use data binding to show the properties in inputVo and write 
<mx:Model> or hardcode to set up data from input field to Value 
Object. But today I have 100 input fields in one Form and 100 
properties in one Value Object. I can show Value Object by 
{inputVo.*}, but how can I write an efficient code for another 
direction binding transformation?

I searched flex coder and haven¡¦t found any solution; please give 
me a hint to complete it.

Alex Yang





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