Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JSF 2 and Bean Validation + CC:s  RSS feed

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!

I'm trying out the latest and greatest with Bean Validation and I'm struggling with some concepts.

Apparently, the default validation group is the one that is checked for a normal JSF 2 integrated Bean Validation. Are there any good patterns if different actions should call different validation groups? Sure, I could call manual validation in the backing bean but then it's up to me to associate the validation errors with their respective components.

Another think I'm attempting is to decorate input fields with something like

<v:validate>
<h:inputText .../>
</v:validate>

and then have a composite component that places the cc:insertChildren field, messge-for and error icon in a table. Is there any way of getting this generic? I tried placing a named inputValueHolder in the cc:interface but the component still had it's original name and I'm not sure how to associate the message-for with the component in a generic way.

Any help on these issues would be appreciated.

Thanks in advance,
Nik
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!