Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed a couple typos and provided example message lookup keys

...

  • formId: the local component id of the Form component
  • fieldId: the local component id of the field (TextField, etc.)
  • validatorName: the name of the validator, i.e., "required" or "minlength"

If there is

...

no message for that key, a second check is made, for fieldId-validatorName-message.

...

 If that  that does not match a message, then the built-in default validation message is used.

For example, if the form ID is "loginForm", the field ID is "userName", and the validator is "required" then Tapestry will first look for a "loginForm-userName-required-message" key in the message catalog, and then for a "userName-required-message" key.

Customizing Validation Messages for BeanEditForm

...