Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed typo.

...

  • The "key" attribute tells the validator to check for a message resource bundle.
  • In the resource bundle, the expression
    No Format
    ${getText(fieldName)}
    tells the framework to lookup the field name in the bundle too. This way we can use the same default message for all the requiredstring validators.
  • Likewise, in the text filed, the expression
    No Format
    %{getText('password')}
    tells the framework to lookup "password" in the message resources.

...