1 Reply Latest reply on Sep 5, 2008 8:05 AM by istrasci

    Validating more than one source with one validator

    thejavafreak
      Dear all,

      Can we use one validator to validate more than one source?

      <mx:StringValidator id="labelVld" source="{nameEntry, labelEntry}" required="true" property="text" />
      <mx:Form>
      <mx:FormItem label="{resourceManager.getString('Admin','name')}" required="true">
      <mx:TextInput id="nameEntry" />
      </mx:FormItem>

      <mx:FormItem label="{resourceManager.getString('Admin','label')}" required="true">
      <mx:TextInput id="labelEntry" />
      </mx:FormItem>

      I placed more than one value inside the source attribute of the mx:StringValidator component but it didn't work. How do I handle this kind of issue in Flex? Does anyone has any idea about this?

      Many thanks