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