Announcement Announcement Module
Collapse
No announcement yet.
Access a message from a ResourceBundle from a Validator class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access a message from a ResourceBundle from a Validator class

    I do not know how to access a message from a ResourceBundle from a Validator class!
    I have a form like this:

    City: input type="text"

    I am validating with ValidationUtils.rejectIfEmpty() and I want the message to be like this: "City is required!"
    I have the "{0} is required" message and I have to pass the "City" argument - also kept as a message... How do I acces the message that is keeping the "City" ? In fact how do I access the locale from the Validator class?

    Thanks,
    Marius
Working...
X