You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/09/20 22:26:57 UTC

[Myfaces Wiki] Update of "JSF and Acegi" by GertVanthienen

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by GertVanthienen:
http://wiki.apache.org/myfaces/JSF_and_Acegi

------------------------------------------------------------------------------
  	FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, ex.getMessage(), ex.getMessage()));
  }}}
  
+ 
+ === Problem when using <jsp:forward /> ===
+ When using <jsp:forward /> to send the user to a page she is not authorized to, the Acegi Security filter chain is only triggered if org.acegisecurity.intercept.web.FilterSecurityInterceptor has been configured with property 'observeOncePerRequest' being set to 'false', in addition to adding the <dispatcher/> element to the filter mapping as described above.
+ 
+ {{{
+ <bean id="filterInvocationInterceptor" class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
+    ...
+    <property name="observeOncePerRequest" value="false"/>
+ </bean>
+ }}}
+