Hi Philip,

What about the other tags?  Do they fail as well?  I see you've used
shiro:guest, shiro:user, shiro:principal, and shiro:authenticated.
What happens for those?

Also note that you can set a debugger break point in the
org.apache.shiro.web.tags.RoleTag class in the onDoStartTag() method
implementation to see what happens when the tag is evaluated.

Cheers,

-- 
Les Hazlewood
Founder, Katasoft, Inc.
Application Security Products & Professional Apache Shiro Support and Training:
http://www.katasoft.com

On Sun, Oct 10, 2010 at 12:49 AM, pkerrigan <[email protected]> wrote:
>
> 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.
>
> 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>
>
> Can anybody tell me what I am doing wrong?
>
>
>
> -----
> regards,
> Philip Kerrigan
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/Shiro-tags-not-working-in-Icefaces-page-tp5619862p5619862.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to