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
精彩评论