开发者

JSF Generic Validator

I want to write a generic validator for checking name of a entity is exist or not.Currently i am doing this ,writing a new validator class for every Entity object,How can i specify Class type of entity bean dynamicly and开发者_如何学Go write a generic validator for entity objects.

 public class LemfValidator implements Validator {
        public void validate(FacesContext context, UIComponent arg1,
                Object name) throws ValidatorException {


This is balusc post .It solve my problem.

http://balusc.blogspot.com/2007/12/validator-for-multiple-fields.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜