Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Non Ajax Request Exception not handled by FacesExceptionFilter - since it never reaches it - MyFaces #413
Env: Liberty App Server 126.96.36.199 (JEE 7 compliant - MyFaces JSF 2.2 implementation), Primefaces 6.1, Omnifaces 2.6.5, Java 8
I understand that with issue #395, FullAjaxExceptionHandler also handles non ajax request, but i don't see FacesExceptionFilter will be able to handle the exception since the Exception's are not getting propagated out of the render response phase (LifeCycle), for e.g. such as ELException happening during render response for initial request will trigger the exception to be swallowed (by first publishing it and then doing nothing about it) and will never be thrown out (at least in MyFaces), until someone creates its own exception factory and handler and simply throw the exception from 'shouldHandleExceptionRootCause' if it was non-ajax request from the handler.
This is what it's going in the MyFaces LifeCycle (rendering part)
In the above scenario, it seems like non ajax request are simply swallowed, and FacesExceptionFilter never gets the chance to act on it.
May be i am missing something.
What do you think?