-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Disable bean validation
PostPosted: Thu Jun 02, 2011 3:28 pm 
Newbie

Joined: Mon Sep 05, 2005 2:28 am
Posts: 6
Hi,

I have a form with elements that should support validation groups.

On the form there is JSF an h:selectBooleanCheckbox, if false one "field group" should be validated. And if true, the other "field group" should be validated.

As I'm using Seam 3, the Faces s:validateForm maps which elements should be validated. In my Validator bean I need to disable validation in case checkbox is true.

When validation occurs, bean validation will throw what ever bean annotation message is declared, from my bound persistent bean that is.

How can I disable bean validation on annotated classes?

Any suggestions?

Cheers,
Ove


Top
 Profile  
 
 Post subject: Re: Disable bean validation
PostPosted: Thu Jun 16, 2011 3:32 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Can you clarify your problem? Maybe w/ some domain classes. Where and how to you use validation? Only on the JSF level?

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.