• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF 2 and Bean Validation + CC:s

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
What's brown and sticky? ... a stick. Or a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic