0 Replies Latest reply on Jan 1, 2009 7:30 PM by Ringo.CS

    Validator error message works with ResourceManager

    Ringo.CS
      Hi,
      I'm implementing the internationalization feature. But i found a problem as following:

      If I set the error message from .mxml like this:

      <mx:StringValidator id="streetValidator" required="true" source="{streetAddress1}" property="text"
      requiredFieldError="{resourceManager.getString('messages', 'addressForm.country')}"/>


      it works correctly when i change locale. But if i set the error message from action script like this:

      view.streetValidator.requiredFieldError = resourceManager.getString("messages", "validation.validator.requiredFieldError");

      it cannot update error message content along with the new selected locale.
      Could someone tell me why or i do something wrong?

      Thank in advance
      Ringo