• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bean validation before Submit

 
david foley
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Just wondering what is the best way to use Bean Validation for Saving Updating and Removing data from a database, with out having MySQL doing validation on the database side.

also like to know without having a Message Box appear when there is an invalid input could you some how get a red boarder around the text area and a Error message within a J label appear and disappear once user enters in the right information
 
Claude Moore
Ranch Hand
Posts: 828
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know, bean validadion allows you to check if a property of a bean satisfies or not a value constraint, checking for example things like not null values, ranges of values, formats or anything else which are local values,but not relational constraints like, for example, that a given product id exists in your db.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic