wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes problem in displaying appropriate error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "problem in displaying appropriate error message" Watch "problem in displaying appropriate error message" New topic
Author

problem in displaying appropriate error message

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

In one of my hibernate entity following code is there


Now when I try to enter string in the input field on seam form I see following error message:
postad:priceDecorate:price: 'f' must be a signed decimal number consisting of zero or more digits, that may be followed by a decimal point and fraction. Example: 198.23


As you can see instead of Price -appropriate field name, postad:priceDecorate:price: getting displayed.
What I have to do to only display Price instead of postad:priceDecorate:price:
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

any body help me on this?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

This looks more of a Seam question to me rather than Hibernate. I guess the error message is probably configurable in Seam. Have you looked up Seam documentation?

[My Blog] [JavaRanch Journal]
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

Yes error message is configurable in seam. But the question I have asked in hibernate forum because it is hibernate validator who generats message and it doesn't understand what name to display and shows unwanted name. I don't know where to fix so that hibernate validation message will not pickup the name I have mentioned in previous post.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: problem in displaying appropriate error message