Externalise validation rules JSF
we want to do business rule validat开发者_如何学Pythonion outside our java code using some xml etc.we are using Spring 3.1 and JSF 2.0.i tried to search but cudn't found concrete on placing business rule outside our java code.i will thankful if someone can provide direaction for this
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
精彩评论