Hi Abhi,

yes you can. You need two entries in your resource bundle: One for a 
generic error message and one for the field name.

validation.required.valueNotPresent = {0} is requierd
fieldname = Field Name

Have a look at 
http://www.stripesframework.org/display/stripes/Localization chapter 
"Localized error messages". There is also an example property file 
somewhere with all the other standard validation errors but i can't find it.

Cheers,
Jan


Abhi schrieb:
> I saw that it can be done. My apologies for cluttering the mailing list.
>
> On Thu, Nov 12, 2009 at 11:44 AM, Abhi <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     If I use stripes in-built annotation validation on action beans,
>     is there a way I can specify the error messages? I remember that
>     stripes uses the field name and some combination to display the
>     error message for inbuilt annotation validation. Is there a way to
>     over ride this?
>
>     -- 
>     Cheers,
>     Abhi
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to