I am trying to make my own implementation of the AuthenticationProcessingFilter in order to make it work with JSF.
I have found a problem with doing that I cannot get to solve, mainly due to the fact that the filter gets executed before the faces context is created for the very first time the page is rendered.
I mean, I have to configure the filter like this (with my own implementation):
<ref local="authenticationManager" />
I cannot put the filterProcessesUrl to be /j_acegi_security_check because doesn't work with JSF.
So the very first time /login.htm is invoked, i.e. when the page is first rendered, the filter gets invoked, but no JSF context is available.
How can I solve this? The problem is the filter will always get invoked using a JSF mapping...