Take look at this, especially the section Localized Error Messages.

http://www.stripesframework.org/display/stripes/Localization

-Ben

On Mon, Jan 31, 2011 at 1:51 PM, hairinwind <robin....@gmail.com> wrote:
> Here is the sample code
> <stripes:label name="primaryAddress.streetName">
>  <fmt:message key='address.streetName'/>
> </stripes:label>
> <stripes:text name="primaryAddress.streetName"/>
>
> If there is validation error on this field, stripes tries to find the 
> localized
> message for "primaryAddress.streetName" and display it in error message. But 
> it
> cannot find it, then it displays "Primary Address Street Name is required".
> "Primary Address Street Name" is not meaningful to the end user, it is just
> coming from the java bean instance name and field name.
>
> How to make it display the text for "address.streetName" in error message 
> while
> validation error happens?
> Thanks
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to