Hi everybody,
I created an interceptor of type InterceptorType.SERVER (I understand it should be the innermost, eg the one that directly calls the methods of my itercepted classes).
The interceptor works fine, but when in its @AroundInvoke method I trap an exception, add a faces message using the following code
FacesMessages facesMessages = (FacesMessages) Component.getInstance(FacesMessages.class); facesMessages.addFromResourceBundle( FacesMessage.SEVERITY_ERROR, "msgs.db.constraint", "", e.getMessage());