Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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-

 

Ryan J. McDonough
http://damnhandy.com

3 Replies:
27. Mar 2008, 18:19 CET | Link

I don't understand the question.

 

Read about how to report a bug.

01. Aug 2008, 19:42 CET | Link

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.

01. Aug 2008, 21:12 CET | Link

Just code validation manually and invoke

FacesMessages.instance().addToControlFromResourceBundle()