This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in displaying appropriate error message

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any body help me on this?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic