This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JSR 303 Custom validation annotation is not firing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JSR 303 Custom validation annotation is not firing" Watch "JSR 303 Custom validation annotation is not firing" New topic
Author

JSR 303 Custom validation annotation is not firing

Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61
Hi

I'm just starting JEE6 with Glassfish and JSF, and I'm trying to create my first JSR-303 validation. The problem I've got is that despite the fact that everything compiles, the validator class is never called. I've listed the code below. (I know that the validator doesn't make logical sense at the moment, there's more to go in it, I'm just trying to get it to work at the moment.) Can anyone see what I'm doing wrong.

Regards

The annotation;



The validator;


and my backing bean (trimmed);


 
Have you checked out Aspose?
 
subject: JSR 303 Custom validation annotation is not firing
 
It's not a secret anymore!