-->
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: field name in validator messages
PostPosted: Wed Aug 29, 2007 2:36 am 
Regular
Regular

Joined: Wed Oct 15, 2003 4:40 pm
Posts: 67
The validation messages can be customized as

Code:
validator.range=must be between {min} and {max}


but is there somehting like

Code:
validator.range={field} must be between {min} and {max}


that would include the field name somehow?

Sure, I can iterate over the InvalidValue[] and assemble the string myself but in seam it would be nice to just to a facesMessages.add on the array


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 30, 2007 5:08 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I don't like that much because a field cannot always be grocked by a human, not even speaking of i18n. But what you are proposing is being discussed by the JSR-303 Expert group

_________________
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.