I just created a separate program with this information and the validator fired 
without error.  The problem is, the rest of my code appears to be ok as well.  
I tried going through commenting out areas of my code that were non-critical 
and I still got the error on my original code.  Anyone know what that error is 
telling me?

Thanks!
 Scott
-------------------------------

I've been banging my head on this issue all afternoon/evening...

In all the examples I've seen for this, the Validator.validateall()
seems to be very straight forward.

<!-- Validators -->
<mx:Array id="validators">
<!-- Validate email -->
<mx:EmailValidator
id="valid1" required="true" 
source="{strEMail}" property="text" enabled="true"
/>

<!--name-->
<mx:StringValidator
id="valid2" required="true"
source="{strName}" property="text" enabled="true" 
/>

<!-- Validate phone number -->
<mx:StringValidator 
id="valid3" required="true" 
source="{strCity}" property="text" enabled="true" 
/> 
</mx:Array>

<mx:Form id="frmContact" left="0" top="0" height="228" width="316">
<mx:TextInput id="strName" width="100%"/>
<mx:TextInput id="strCity"/>
<mx:TextInput id="strEMail"/>
</mx:Form>

<mx:Button label="Add" id="btnAdd" x="51" click="if(
Validator.validateAll(validators).length==0){addUser()}"/>

I've tried several different iterations but the Validator.validateAll()
seems to be the problem. (I've tried creating an array and pushing the
objects into the array and I've also tried to manually set the objects
in the call (Validator.validateAll([valid1, valid2, valid3]) but I
always get the following error:

"Error: The source attribute must be specified when the property
attribute is specified.
at
mx.validators::Validator/getValueFromSource()[C:\autobuild\3.2.0\framewo
rks\projects\framework\src\mx\validators\Validator.as:846]
at
mx.validators::Validator/validate()[C:\autobuild\3.2.0\frameworks\projec
ts\framework\src\mx\validators\Validator.as:810]
at
mx.validators::Validator$/validateAll()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\validators\Validator.as:134]
at
com.cfgenerated.views.Contacts::AddContactForm2/__btnAdd_click()[C:\Cold
Fusion8\wwwroot\FT\src\com\cfgenerated\views\Contacts\AddContactForm2.mx
ml:149]"

Anyone know what this error is referring to and/or why I'm getting it?

Thanks.
Scott

Reply via email to