Thanks Mark. I will try this. Ankur
On Tue, Feb 1, 2011 at 3:49 PM, Mark Struberg <[email protected]> wrote: > hi Ankur! > > You can basically validate any POJO which has a JSR-303 annotation on it. > Prominent examples of that being JPA entities, JSF backing beans, etc. > > For getting into it I suggest to first checkout the sources > > $> svn co https://svn.apache.org/repos/asf/incubator/bval/trunk bval > > Now build it with maven [1] by simply going into 'cd bval' and invoking > > $> mvn clean install > > Voila! You now have a self compiled bval-0.3-incubating-SNAPSHOT in your > local ~/.m2/repository/... > > As examples for beans which get validated please see the classes in > ./bval-jsr303/src/test/java/org/apache/bval/jsr303/example/ > > Feel free to ping us back if you need more or have any detailed questions! > > LieGrue, > strub > > > [1] http://maven.apache.org > > --- On Tue, 2/1/11, ankur garg <[email protected]> wrote: > > From: ankur garg <[email protected]> > Subject: Regarding using or debugging BeanValidator > To: "[email protected]" <[email protected]> > Date: Tuesday, February 1, 2011, 3:55 AM > > Hi, > I am new to this project, Can you help me with sample source or any > document which can help me run beanValidator and setup a debug environment > for the project. I want to contribute by fixing bugs in the project. Any > help will be great. > > > I am trying to use following sample code: > package com; > import javax.validation.Validation;import javax.validation.Validator; > import javax.validation.ValidatorFactory; > import org.apache.bval.jsr303.ApacheValidationProvider; > public enum MyValidatorFactory { > SINGLE_INSTANCE { ValidatorFactory avf = > Validation.byProvider(ApacheValidationProvider.class).configure().buildValidatorFactory(); > @Override > public Validator getValidator() { return > avf.getValidator(); } }; public abstract Validator > getValidator(); > } > I am not sure what sort of java bean I can validate, please help. > Thanks,Ankur > > > > >
