-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to get rid of the client id in hibernate validator?
PostPosted: Fri Mar 04, 2011 4:18 am 
Newbie

Joined: Fri Mar 04, 2011 4:16 am
Posts: 2
Hi all
I use hibernate validator 4.0.2-GA to validate my input fields. All works fine, but it always displays the message with the client id:
Quote:
typeForm:title: Bitte einen Titel zwischen 6 und 128 Zeichen eingeben.

I want to get rid of this client id. Only the error message should be displayed:
Quote:
Bitte einen Titel zwischen 6 und 128 Zeichen eingeben.

How can I do this?

Thanks a lot!


Top
 Profile  
 
 Post subject: Re: How to get rid of the client id in hibernate validator?
PostPosted: Fri Mar 04, 2011 9:17 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

It's not Validator which puts the field name into the message. The message from validator is "Bitte einen Titel zwischen 6 und 128 Zeichen eingeben". Whatever framework you are using adds additional information to the error message. Are you using JSF? If so you will have to look at the documentation there. I believe JSF for example has a ValidationMessages.properties somewhere.

--Hardy


Top
 Profile  
 
 Post subject: Re: How to get rid of the client id in hibernate validator?
PostPosted: Fri Mar 04, 2011 9:45 am 
Newbie

Joined: Fri Mar 04, 2011 4:16 am
Posts: 2
Hi
Yes, I am using JSF 2.0 (myfaces) and primefaces. There is a file called "ValidationMessages.properties", in which I configure my validation messages. But I didn't configure that it should display the client id.

Thanks & Greetings
Joschi


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.