I don’t think there is a real need to create a JSF Facelet taglib.
All you need is something liike this:
(not tested)
@Named @ApplicationScoped
class JSFSecurityUtils
{
public Subject getSubject() { return SecurityUtils.getSubject(); }
}
and in JSF you can use everything now:
#{JSFSecurityUtils.subject.isPermitted(‘my:permission’)}
so with this in mind, JSF taglib is of little value, IMHO
> On Nov 12, 2015, at 5:26 AM, raupach <[email protected]> wrote:
>
> Hi,
>
> unfortunately Apache Shiro supports only a JSP taglib. JSF is a different
> beast and you need a Facelets Taglib for that.
>
> In August I wrote an email to the dev mailing list if a Facelet taglib is in
> plan or thought about. Unfortunately I got no response. Maybe it was not the
> correct place to ask and I should have done here.
>
> I believe it is totally doable to implement a Facelets taglib like the JSP
> one. We are still working with Spring Security and we are actually wanting
> to migrate to Apache Shiro, but this is blocker.
>
> I would actually spent some time on it and try to make it feasible. I am
> just a bit unsure about the state of Apache Shiro at the moment. I know it
> is OpenSource and people sacrifice their spare time to work on projects like
> this, but the Apache JIRA looks pretty stale. No closed issues in the last
> 30 days.
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/Shiro-web-in-JSF-Page-not-working-tp7580779p7580843.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>