3 Replies Latest reply on Aug 1, 2008 9:12 PM by Vladimir Kovalyuk

    Conditional Validation with Seam and Hibernate Validator

    Ryan McDonough Newbie

      I am working on a project where a few entities require additional validations to be performed when it reaches a certain state, or the values of other fields are set. For example, you have a content entity which represents a blog post on a site. You can add a title, category and body. The content entry can't be published to the site without the body, but you can create and persist the content entity without a body.


      My colleague and I are working on a such an issue as described in this post:


      http://www.seamframework.org/Community/ProblemWithValidator


      Unfortunately, we can't get Seam to handle the validation without making the all of the fields required. Can Seam and Hibernate Validator do this?


      Ryan-