-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Using a common resource bundle for messages in all webapps
PostPosted: Sat Oct 18, 2008 4:29 pm 
Newbie

Joined: Sat Oct 18, 2008 4:12 pm
Posts: 1
I have developed a series of validation annotations that I want to be JSR-303 compliant. However, I want the messages to be pulled from a common resource bundle (packaged in a separate jar file) with a parameter (or parameters) coming from the annotation's message attribute (or another attribute(s)). Is that possible with the current version of the spec?

This feature is very important to us because it allows us to specify the meat of the message, thus allowing a consistent user experience in all of our web applications. It is also important for us to specify most of the message because the vast majority of our developers are not native English speakers. For instance, in the message, "The field user name contains illegal characters. Please use only alphanumeric characters, periods, whitespace and single dashes.", only 'user name' is specified by the developer (as literal text or a key to a record in a local resource bundle).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 27, 2008 2:49 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes I think you can write you own MessageResolver.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.