Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF 2 and Bean Validation + CC:s  RSS feed

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

<h:inputText .../>

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,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!