Ask questions and see you at 6th April 6.PM. CET: http://www.ustream.tv/channel/adambien
See also the airhacks archives airhacks.tv and subscribe to the airhacksnews.com
- I have never used Spring ,hibernate and struts ,I build my web app's using Jsf, ejb,cdi ,jpa ,is the same ? what's the difference? @SoyRoji
Hi Adam!
About JSF, what's the best way to validate the data? I usually use Validator in the view, and in the business logic, sometimes, I have to validate again. How can I avoid the replication of validation logic without grow the coupling between the business classes and validation classes?
And about how to validate, how can I propagate/notify the invalid data to the user/client?
Should I use custom business validation exceptions? If yes, checked exceptions?
Sometime, my business logic declares a lot of business exception (some checked and others not), through this way my controller and my REST endpoit have to enclose the call with try/catch.
What's the best way to do that?
Can you show us?
Thank you!