The moose likes JSF and the fly likes JSF 2 and Bean Validation + CC:s Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "JSF 2 and Bean Validation + CC:s" Watch "JSF 2 and Bean Validation + CC:s" New topic
Author

JSF 2 and Bean Validation + CC:s

Nicklas Karlsson
Greenhorn

Joined: Oct 03, 2007
Posts: 4
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSF 2 and Bean Validation + CC:s
 
Similar Threads
Does VO not suitable for local architecture?
Part II: Cade's usage of a Controller within the Class Diagram & the Sequence Diagrams
Composite Components with ViewScoped bean
Spring MVC 3 and JSF2 Integration
Integrating AJAX and JSF