You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 22 Members of 4546 |
| Forum: Seam Users |
25. Mar 2008, 00:08 CET | Link |
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-
3 Replies: | ||
|---|---|---|
well i think you might have a similar problem as me: seam validation for @NotNull or @NotEmpty will not work. because jsf skips all validators for empty valued fields. |
||
Just code validation manually and invoke FacesMessages.instance().addToControlFromResourceBundle() |
Ryan J. McDonough
http://damnhandy.com