2 Replies Latest reply on Jun 1, 2009 2:40 AM by savruk

    Validator problem




      I use more then 200 different types of validators in a mxml file. When i try to "save" my form values, i get that error:
      Error: The source attribute must be specified when the property attribute is specified.
        at mx.validators::Validator/getValueFromSource()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\validators\Validator.as:846]
        at mx.validators::DateValidator/getValueFromSource()[C:\autobuild\3.2.0\frameworks\projects\ framework\src\mx\validators\DateValidator.as:1325]
        at mx.validators::Validator/validate()[C:\autobuild\3.2.0\frameworks\projects\framework\src\ mx\validators\Validator.as:810]
        at mx.validators::Validator$/validateAll()[C:\autobuild\3.2.0\frameworks\projects\framework\ src\mx\validators\Validator.as:134]
        at patientEdit/validateForm()[C:\Users\savruk\Documents\Flex Builder 3\thales\src\patientEditfunctions.as:4151]
        at patientEdit/__dezKaydetButton_click()[C:\Users\savruk\Documents\Flex Builder 3\thales\src\patientEdit.mxml:6178]
      Where am i doing wrong? Most of fields are in different tabs bu in same "mxml".
      Here is a sample validator i use:
      <mx:StringValidator id="n_s7_6_5__13_10_6_Validator"
          requiredFieldError=" - Bu alan zorunludur" />
      I created these much validators by php script. So there cannot be wrong code. Because whene i use only one of them, i got nothing. Where is the problem? Is using that much validator problem? How can i solve this?