Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-29 Thread dorkie dork from dorktown
After some testing it appears to prevent red borders early as you say if I
do not assign validators until the time the submit button is clicked. thank
you

On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote:

 **


 this occurs due to validation errors. in ur case i think while rendering
 it focus in ur component and on focus out it validates ur component. i
 havent tried it but i think u can use initialize property of the component
 to stop validation at initialization process. Or u can assign the validator
 to that component after all components have been rendered.
 i will try to find out more and will let u know.

 Asad.

  *From:* michael_reg...@dell.com michael_reg...@dell.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, November 21, 2011 7:41 PM
 *Subject:* RE: [flexcoders] Re: Red error borders on form items before
 form is validated


  Can you give an example of how you’ve written your validator?  I’m
 suspecting it is on how you defined the trigger.

  *Michael J. Regert***

  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On
 Behalf Of *Khanh
 *Sent:* Thursday, November 17, 2011 4:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Red error borders on form items before form
 is validated


   It's a focus border.
 Usually, it's blue. I'm not sure how it's red in your case!
 You can change the color following this example.
 Thanks to Peter Dehaan for his great tip.

 http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

 OR you can hide this by using the property: focusAlpha
 mx:TextInput id=txtInput focusAlpha=0/

 Good luck.

 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 dorkiedorkfromdorktown@... wrote:
 
  When I display my Form elements (TextInput, Combox, etc) the red error
  border is shown right away before the user even types into it. Why is
 this
  happening? How can I prevent it from showing a red error border when it's
  first displayed?
 


  



Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-29 Thread Asad Zaidi
validation is done on focus out it is conformed. I think u can use 
myField.errorString =;
 
Asad



From: dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com
To: flexcoders@yahoogroups.com 
Sent: Tuesday, November 29, 2011 5:17 AM
Subject: Re: [flexcoders] Re: Red error borders on form items before form is 
validated


  
It seems to be the case that it's validating on focus out. I realize I need to 
come up with a test case to see if this is the default behavior or something 
causing it in my project. 


On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote:

  
this occurs due to validation errors. in ur case i think while rendering it 
focus in ur component and on focus out it validates ur component. i havent 
tried it but i think u can use initialize property of the component to stop 
validation at initialization process. Or u can assign the validator to that 
component after all components have been rendered.
i will try to find out more and will let u know.
 
Asad.


From: michael_reg...@dell.com michael_reg...@dell.com
To: flexcoders@yahoogroups.com 
Sent: Monday, November 21, 2011 7:41 PM
Subject: RE: [flexcoders] Re: Red error borders on form items before form is 
validated



  
Can you give an example of how you’ve written your validator?  I’m suspecting 
it is on how you defined the trigger.
 
Michael J. Regert
 
From:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Khanh
Sent: Thursday, November 17, 2011 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Red error borders on form items before form is 
validated

  
It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?






Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-28 Thread dorkie dork from dorktown
It seems to be the case that it's validating on focus out. I realize I need
to come up with a test case to see if this is the default behavior or
something causing it in my project.

On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote:

 **


 this occurs due to validation errors. in ur case i think while rendering
 it focus in ur component and on focus out it validates ur component. i
 havent tried it but i think u can use initialize property of the component
 to stop validation at initialization process. Or u can assign the validator
 to that component after all components have been rendered.
 i will try to find out more and will let u know.

 Asad.

  *From:* michael_reg...@dell.com michael_reg...@dell.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, November 21, 2011 7:41 PM
 *Subject:* RE: [flexcoders] Re: Red error borders on form items before
 form is validated


  Can you give an example of how you’ve written your validator?  I’m
 suspecting it is on how you defined the trigger.

  *Michael J. Regert***

  *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On
 Behalf Of *Khanh
 *Sent:* Thursday, November 17, 2011 4:20 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Red error borders on form items before form
 is validated


   It's a focus border.
 Usually, it's blue. I'm not sure how it's red in your case!
 You can change the color following this example.
 Thanks to Peter Dehaan for his great tip.

 http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

 OR you can hide this by using the property: focusAlpha
 mx:TextInput id=txtInput focusAlpha=0/

 Good luck.

 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 dorkiedorkfromdorktown@... wrote:
 
  When I display my Form elements (TextInput, Combox, etc) the red error
  border is shown right away before the user even types into it. Why is
 this
  happening? How can I prevent it from showing a red error border when it's
  first displayed?
 


  



Re: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-22 Thread Asad Zaidi
this occurs due to validation errors. in ur case i think while rendering it 
focus in ur component and on focus out it validates ur component. i havent 
tried it but i think u can use initialize property of the component to stop 
validation at initialization process. Or u can assign the validator to that 
component after all components have been rendered.
i will try to find out more and will let u know.
 
Asad.



From: michael_reg...@dell.com michael_reg...@dell.com
To: flexcoders@yahoogroups.com 
Sent: Monday, November 21, 2011 7:41 PM
Subject: RE: [flexcoders] Re: Red error borders on form items before form is 
validated


  
Can you give an example of how you’ve written your validator?  I’m suspecting 
it is on how you defined the trigger.
 
Michael J. Regert
 
From:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Khanh
Sent: Thursday, November 17, 2011 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Red error borders on form items before form is 
validated
 
  
It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?



RE: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-22 Thread Sells, Fred
If found that widget.errorString=null clears the red border while setting it 
to a value displays it.

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Asad Zaidi
Sent: Tuesday, November 22, 2011 2:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Red error borders on form items before form is 
validated

 

  

this occurs due to validation errors. in ur case i think while rendering it 
focus in ur component and on focus out it validates ur component. i havent 
tried it but i think u can use initialize property of the component to stop 
validation at initialization process. Or u can assign the validator to that 
component after all components have been rendered.

i will try to find out more and will let u know.

 

Asad.

 

From: michael_reg...@dell.com michael_reg...@dell.com
To: flexcoders@yahoogroups.com 
Sent: Monday, November 21, 2011 7:41 PM
Subject: RE: [flexcoders] Re: Red error borders on form items before form is 
validated

  

Can you give an example of how you’ve written your validator?  I’m suspecting 
it is on how you defined the trigger.

 

Michael J. Regert

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Khanh
Sent: Thursday, November 17, 2011 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Red error borders on form items before form is 
validated

 

  

It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
dorkie dork from dorktown dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?


 





RE: [flexcoders] Re: Red error borders on form items before form is validated

2011-11-21 Thread michael_regert
Can you give an example of how you've written your validator?  I'm suspecting 
it is on how you defined the trigger.

Michael J. Regert

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Khanh
Sent: Thursday, November 17, 2011 4:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Red error borders on form items before form is 
validated



It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, dorkie 
dork from dorktown 
dorkiedorkfromdorktown@...mailto:dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?




[flexcoders] Re: Red error borders on form items before form is validated

2011-11-21 Thread DP
Actually, I'm sure he's talking about the required attribute creating a red 
border (not a focus border) because the field doesn't have a value in it just 
yet.

The Focus border is something entirely different.

--- In flexcoders@yahoogroups.com, Khanh khanh4all@... wrote:

 It's a focus border.
 Usually, it's blue. I'm not sure how it's red in your case!
 You can change the color following this example.
 Thanks to Peter Dehaan for his great tip.
 http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/
 
 OR you can hide this by using the property: focusAlpha
 mx:TextInput id=txtInput focusAlpha=0/
 
 Good luck.
 
 --- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
 dorkiedorkfromdorktown@ wrote:
 
  When I display my Form elements (TextInput, Combox, etc) the red error
  border is shown right away before the user even types into it. Why is this
  happening? How can I prevent it from showing a red error border when it's
  first displayed?
 





[flexcoders] Re: Red error borders on form items before form is validated

2011-11-20 Thread Khanh
It's a focus border.
Usually, it's blue. I'm not sure how it's red in your case!
You can change the color following this example.
Thanks to Peter Dehaan for his great tip.
http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/

OR you can hide this by using the property: focusAlpha
mx:TextInput id=txtInput focusAlpha=0/

Good luck.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown 
dorkiedorkfromdorktown@... wrote:

 When I display my Form elements (TextInput, Combox, etc) the red error
 border is shown right away before the user even types into it. Why is this
 happening? How can I prevent it from showing a red error border when it's
 first displayed?