Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
in your Application::init(); addComponentOnBeforeRenderListener( new HIbernateValidator() ); This will add validators to every @Entity | @Embeddable properties using Hibernate validators which are acting as CompoundModel()'s Objects in a Form taha On Sun, Mar 15, 2009 at 11:03 AM, Will Jaynes

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
I guess I'm not sure what you mean. Can you please show a code snippet? On Sun, Mar 15, 2009 at 1:04 AM, taha siddiqi wrote: > I actually used it as a listener and at component level in my project. > > I will try to add this feature to it.. > > Thanks > taha > > On Sun, Mar 15, 2009 at 10:17 AM,

Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
I actually used it as a listener and at component level in my project. I will try to add this feature to it.. Thanks taha On Sun, Mar 15, 2009 at 10:17 AM, Will Jaynes wrote: > Taha, I've tried playing with  your HibernateValidator. It seems necessary > to add it to each form field. If I add it

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
Taha, I've tried playing with your HibernateValidator. It seems necessary to add it to each form field. If I add it simply to the form, the validation behavior doesn't happen. Am I missing something? Will On Sat, Mar 14, 2009 at 9:06 AM, taha siddiqi wrote: > I was myself very much interested a

Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
I was myself very much interested and finally I found wicket-hibernate at http://www.jroller.com/wireframe/entry/hibernateannotationcomponentconfigurator and wicket-jpa at http://perfbench.googlecode.com/svn/trunk/perfbench/wicket-jpa/ Then I came up which something that works for me ( already i

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
In the archives, back in 2007, I see a lot of discussion about Hibernate/JPA validator and Wicket, but I can't find if there was any result from those discussions. Did anything come of it? Will On Tue, Mar 10, 2009 at 11:29 AM, taha siddiqi wrote: > but then how to get a ResourceBundle from wick

Re: Trying Hibernate Validator Integration

2009-03-10 Thread taha siddiqi
but then how to get a ResourceBundle from wicket resource ?? On Tue, Mar 10, 2009 at 8:43 PM, Peter Thomas wrote: > On Tue, Mar 10, 2009 at 9:04 AM, taha siddiqi wrote: > >> But the problem is when you begin to use the wicket resource files, >> hibernate-validator comes with its own messages an

Re: Trying Hibernate Validator Integration

2009-03-10 Thread Peter Thomas
On Tue, Mar 10, 2009 at 9:04 AM, taha siddiqi wrote: > But the problem is when you begin to use the wicket resource files, > hibernate-validator comes with its own messages and need to be > integrated with wicket ( which i was not able to ) There is some info here on how to pass a resource-bund

Re: Trying Hibernate Validator Integration

2009-03-10 Thread taha siddiqi
But the problem is when you begin to use the wicket resource files, hibernate-validator comes with its own messages and need to be integrated with wicket ( which i was not able to ) taha On Tue, Mar 10, 2009 at 8:11 PM, Peter Thomas wrote: > On Tue, Mar 10, 2009 at 7:35 AM, taha siddiqi wrote:

Re: Trying Hibernate Validator Integration

2009-03-10 Thread Peter Thomas
On Tue, Mar 10, 2009 at 7:35 AM, taha siddiqi wrote: > Hi, > > I was working with Hibernate-validator and thought of sharing the code. > Taha: I thought the ClassValidator will handle all the different cases and annotations for you, see line #89 http://code.google.com/p/perfbench/source/browse/

Trying Hibernate Validator Integration

2009-03-10 Thread taha siddiqi
Hi, I was working with Hibernate-validator and thought of sharing the code. It is a listener as well as a behavior which can be used at application level as well as with individual components. It is heavily inspired from wicket-jpa and wicket-hibernate projects... I just tried some changes... i