I haven't had time to check HV in depth for the moment but I've heard
good things about it, and was about to ask the same question as Bruno,
because I would be interested too in such a validator.

Martijn, doesn't your proposition to rely on JPA spec instead of HV
imply to rewrite sg similar to what has been done in HV?

Xavier

On 4/25/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
I would most like want this to be built against the JPA spec instead
of directly implementing Hibernate's validators. Then we can use it
for toplink, hibernate, openjpa, etc. And it is Apache license
friendly too.

Martijn

On 4/25/07, Bruno Borges <[EMAIL PROTECTED]> wrote:
> I was thinking of a Validator like the Ajax one. See this example:
>
> TextField email = new TextField("email");
> email.add(new JPAValidator()); // or new JPAValidator(Pojo.class);
>
> And the class scans the Model for annotated properties and adds the related
> Wicket validators automatically. If the Model is a POJO not annotated with
> @Entity,  its possible to use JPAValidator(Class clazz);.
>
> @EmailValidation // a custom HV email's annotation pattern
> public String getEmail() { return email; }
>
> What you guys think about this? (I like to see the code I'd like to use and
> implement it around the examples... :D )
>
> []'s
> --
> Bruno Borges
> Summa Technologies Inc.
> www.summa-tech.com
> (48) 8404-1300
> (11) 3055-2060
>
> On 4/24/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > I've been thinking about it, haven't got around doing it. Should be
> > pretty easy to do, especially with our shiny new validators. Maybe we
> > can make this a shared effort?
> >
> > Eelco
> >
> > On 4/24/07, Bruno Borges <[EMAIL PROTECTED]> wrote:
> > > Has anybody made an integration between Wicket and Hibernate Validator?
> > HV
> > > is probably going to be the reference implementation for JSR 303 and
> > JBoss
> > > Seams use it integrated with JSF. Looks cool...
> > >
> > > http://hibernate.org/412.html
> > > http://jcp.org/en/jsr/detail?id=303
> > >
> > > Cheers
> > > --
> > > Bruno Borges
> > > Summa Technologies Inc.
> > > www.summa-tech.com
> > > (48) 8404-1300
> > > (11) 3055-2060
> > >
> >
>


--
Learn Wicket at ApacheCon Europe: http://apachecon.com
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org



--
Learn Ivy at ApacheCon: http://www.eu.apachecon.com/
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/

Reply via email to