Managing bean validation using interceptors come with some benefits. Therefore I am trying to validate bean using interceptors to avoid tight coupling. I would like to know how to return a page after an interceptor has caught an error resulted from bean validation and display this error message on a page that includes some thyme leaf code.
below is how to use interceptors in this context.
How to Inject OSGi Dependencies in Custom Portlets in Liferay 7