You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Les Hazlewood (JIRA)" <ji...@apache.org> on 2012/07/24 21:34:34 UTC

[jira] [Resolved] (SHIRO-202) Shiro Tags are not working in Icefaces page

     [ https://issues.apache.org/jira/browse/SHIRO-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Les Hazlewood resolved SHIRO-202.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.0

Resolved in the trunk's support/faces module unless someone indicates otherwise by re-opening this issue.
                
> Shiro Tags are not working in Icefaces page
> -------------------------------------------
>
>                 Key: SHIRO-202
>                 URL: https://issues.apache.org/jira/browse/SHIRO-202
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         Environment: Windows XP, Tomcat6, Java 1.6. War file created by Maven2
>            Reporter: Philip Kerrigan
>             Fix For: 1.3.0
>
>         Attachments: IcefacesShiroSecurity.zip
>
>
> I have an example project to test the use of Shiro with Icefaces, but the Shiro tags do not work on the Icefaces page.
> I have tried to convert the Icefaces with spring security example program to use Shiro instead of spring security, and while I can authenticate a user and roles appear to work with Icefaces components I have been unable to get tags to work.
> For example in the page secured/welcome.jspx if I have a conditional display of a field depending on role the field always gets displayed.
> Example:
> <html xmlns:jsp="http://java.sun.com/JSP/Page"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:f="http://java.sun.com/jsf/core" version="2.0"
>       xmlns:shiro="http://shiro.apache.org/tags"
>       xmlns:ice="http://www.icesoft.com/icefaces/component">
> <head>
>     <title>Shiro Security with ICEfaces Components</title>
> </head>
> <body>
> <p>Hi <shiro:guest>Guest</shiro:guest><shiro:user><shiro:principal/> is logged on</shiro:user>
> </p>
> <shiro:authenticated>
> <shiro:hasRole name="special">
>             <ice:outputText
>                     value="Shiro authenticated users with special role can see this message."/>
> </shiro:hasRole>
> </shiro:authenticated> 
> Guest is shown although the user is authenticated, and principal shows nothing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira