[jboss-user] [JBoss Seam] - Re: How to write a validator that compares two fields

nickarls do-not-reply at jboss.com
Fri Oct 12 06:11:53 EDT 2007


Haven't read all  your code but if you want to compare two fields, how about:

@AssertTrue
public void passwordsEqual() {
  return password.equals(comparePassword);
}



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094456#4094456

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094456



More information about the jboss-user mailing list