Diego Guebel wrote:
> Hi Tim,
> this might be a silly example:
> I have a login form, when the command responds onFault I want to able to
> reset the user and password textfields.
> doing something like:
> viewRef.resetForm();
>
> you might suggest to do something like this in the view:
> <mx:TextInput id="username" text="{login.username}"/>
> <mx:TextInput id="password" text="{login.password}"/>
>
> and something like this in the command:
> public function onFault(event:* = null):void
> {
> model.login.username = "";
> model.login.password = "";
> }
just to clarify in my own head as I am learning this stuff.. I usually
would use:
model.login.username = null;
any real difference or things to watch for between the two?
Impudent1
LeapFrog Productions
--
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/