No, to use the objects from the wiki, you need to add the httpcontextintegrationfilter declaration to the Spring Security filter chain.

Glauco P. Gomes

Ioannis Deligiannis escreveu:
Thanks,

So let the only alternative is to use the sec taglibs?

Ioannis Deligiannis| Senior Application Engineer

Velti

Mob: +30.6948.593.623 | Tel: +30.210.637.8800 (ext: 6730) | Fax: 
+30.210.637.8888
Email: ideligian...@velti.com | Web: www.velti.com

Velti is a global leader in mobile marketing and advertising solutions for 
mobile operators, ad agencies, brands, and media groups.

London | New York | San Francisco | Boston | Athens | Sofia | Nicosia | Paris | 
Munich | Moscow | Mumbai | Dubai | Beijing


-----Original Message-----
From: Cagatay Civici [mailto:cagatay.civ...@gmail.com] Sent: Thursday, September 24, 2009 6:30 PM
To: MyFaces Discussion
Subject: Re: Myfaces and Presentation Role based rendering

You need to add the httpcontextintegrationfilter to your filter chain to make MyFaces security work communicate with Spring Security.

Other way is to provide your own SecurityContext implementation, default one uses container managed security.

First solution is simpler.

Regards,

Cagatay

On Sep 24, 2009, at 2:15 PM, jid1 wrote:

Thanks for the tips.
i tried using the wiki objects but they don't seem to be working
out-of-the-box with spring security that I am using (Nothing gets returned
from the EL).

I did find the spring security taglibs though. any comments/ drawbacks on
using spring tags instead?
From a first look I dont see any tag that evaluates to true/false (e.g. for
enable disable functionality) It seems ok just for the layouts.

Thanks


Mike Kienenberger wrote:
http://wiki.apache.org/myfaces/SecurityContext

On Mon, Sep 21, 2009 at 9:45 AM, jid1 <ideligian...@velti.com> wrote:
Hello,

I was looking for role-based rendering Tags/Tools to use with myfaces. Is
there any common practice from this?

I would like my forms (and other UI) to render information based on the
user
role. Eg. If I have a component I would like it to be editable for
ROLE_ADMIN, visible for ROLE_MOD and not visible for all others. Is there
any out of the box framework to do this?

Thanks
--
View this message in context:
http://www.nabble.com/Myfaces-and-Presentation-Role-based-rendering-tp25530337p25530337.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


--
View this message in context: 
http://www.nabble.com/Myfaces-and-Presentation-Role-based-rendering-tp25530337p25567701.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.




Reply via email to