This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

globalError get the message in ResourceBundleMessageSourcePage Title Module

In my JSP, I take the first globalError (there could be only one), but I ve seen in the API that I can only display the default message with the method "getDefaultMessage" (the one defined in the validator) and not the one defined in the ResourceBundleMessageSource with the code "wrong dates".

Is there a way to display the message defined in the ResourceBundleMessageSource ?

Comment

The "wrongDates" error should be thrown and displayed in my web page only when I have 2 valid dates and "From date" > "To date".
But when I have this error displayed and then I fill a wrong date (like "aaa" instead of a valid date like "20/01/2004"), the field error is displayed (this is normal) but the "wrongDates" error is still displayed too.. :?

How can I made this error not to be displayed when I have an "invalid date" error?