Regarding the Faces tags, all I can say is that a private
1.3.0-SNAPSHOT build works fine for me. What exactly is not working
for you - do you see the tag content when the user does not have the
role, or do you see it even though the user does not have the role...?

Shiro annotations only work in combination with a suitable interceptor
framework. You mentioned AspectJ, so did you weave your code or use a
runtime agent?

Best regards,
Harald


2013/7/28 akhan <[email protected]>:
> Hi,
> I have couple of of questions related to configuration of Shiro Annotations
> and Shiro faces Tags. I know they are different subjects but it seems to me
> to that most likely they are configuration issues and both related to Shiro
> - hence posting them together.
>
> I downloaded and built Shiro web, core, faces and JAspect from Shiro version
> 1.3.0 and added all the JAR files to my list of libraries. That's all I have
> done. In both cases there are no exceptions messages.
>
> *Shiro Tags not working:*
>
> <?xml version='1.0' encoding='UTF-8' ?>
> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
> <html xmlns="http://www.w3.org/1999/xhtml";
>       xmlns:h="http://xmlns.jcp.org/jsf/html";
>       xmlns:shiro="http://shiro.apache.org/tags";>
>     <h:head></h:head>
>     <h:body>
>         <shiro:hasRole  name="ADMIN">
>             Hey Admin from Shiro
>         </shiro:hasRole>
>     </h:body>
> </html>
>
> Not sure if there are additional configuration steps that I have missed.
>
>
> *Shiro Annotations issue*
>
> On different but related problem is that the Shiro Annotations are not
> working but calling the API methods are working fine.
>
>     @RequiresPermissions("admin:create") //Does not work
>     public String createAccount()
>     {
>         //Return false
>         System.out.println("admin:delete" +
> SecurityUtils.getSubject().isPermitted("admin:delete"));
>         return "Account created";
>     }
>
>
>
>
>
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/Setting-up-Annotations-and-Shiro-faces-tags-tp7578964.html
> Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to