Hi,
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):
<bean id="authenticationProcessingFilter"
class="com.motorfacil.portal.web.common.authentica tion.JSFAuthenticationProcessingFilter">
<property name="authenticationManager">
<ref local="authenticationManager" />
</property>
<property name="authenticationFailureUrl">
<value>/login.jsp</value>
</property>
<property name="defaultTargetUrl">
<value>/</value>
</property>
<property name="filterProcessesUrl">
<value>/login.htm</value>
</property>
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...


