i am working on a JSF Projekt with Glassfish. My validation works well but i dont become a custom error message.
//Class = User, package = devteam
@NotEmpty
You should put the file in the root, then
devteam.User.emailAddress[Pattern] = "Your message here"
notice [Pattern] to specify the message to output when the Pattern has a constraint violation. this makes it easier to maintain in my opinion vs having the messages like
@Patterh(regexp ="xx", message = "your message here")
for every setter