shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Kerrigan (JIRA)" <>
Subject [jira] Updated: (SHIRO-202) Shiro Tags are not working in Icefaces page
Date Sun, 17 Oct 2010 19:29:22 GMT


Philip Kerrigan updated SHIRO-202:


Example program using Icefaces and Shiro derived from Icefaces demo program using Spring Security

> Shiro Tags are not working in Icefaces page
> -------------------------------------------
>                 Key: SHIRO-202
>                 URL:
>             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
>         Attachments:
> 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=""
>       xmlns:h=""
>       xmlns:f="" version="2.0"
>       xmlns:shiro=""
>       xmlns:ice="">
> <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.
You can reply to this email to add a comment to the issue online.

View raw message