简体   繁体   中英

Externalise validation rules JSF

我们想使用一些xml等在我们的Java代码之外进行业务规则验证。我们正在使用Spring 3.1和JSF 2.0.i尝试进行搜索,但并未发现将业务规则放置在我们的Java代码之外的具体方法。如果有人可以,我将非常感谢为此提供反感

I know this isn't exactly what you are looking for but you can use Hibernate annotations in place of hard coded validators in JSF 2.

These are just a few examples of this.

http://weblogs.java.net/blog/urubatan/archive/2006/09/aspectj_hiberna.html

http://docs.jboss.org/seam/1.1GA/reference/en/html/validation.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM