I did not inject anything from Acegi actually, Acegi wraps httpservletrequest using a filter. So the component does not know whether it uses acegi or not. I have used httpservletrequest methods like isuserinrole.
Secondly, I am not very familiar with the myfaces's userroleaware, so I cannot say something for now.
Regards,
Cagatay Civici,
On 1/19/06,
Aleksei Valikov <[EMAIL PROTECTED]> wrote:
Hi.
> I've implemented custom jsf components that can be used to integrate
> Acegi into JSF. Acegi has built-in JSP tags for securing components but
> no support for JSF, my aim is to do the same thing for the JSF environment.
>
> Related information can be found at my blog;
> http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the
>
>
> I've released the component in sourceforge jsf-comp. The component is
> under Apache License.
> http://sourceforge.net/projects/jsf-comp/
>
> If you are planning to use JSF-Spring-Acegi together in your
> applications, this component could be a possible solution.
Doesn't it intersect with MyFaces' UserRoleAware? I haven't used it
myself, but as long as you integrate ACEGI context in the HTTP request,
this should work for all UserRoleAware components.
Bye.
/lexi