myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Polverini (JIRA)" <>
Subject [jira] Created: (MYFACES-114) visibleOnUserRole not working
Date Thu, 03 Mar 2005 15:05:54 GMT
visibleOnUserRole not working

         Key: MYFACES-114
     Project: MyFaces
        Type: Bug
    Versions: Nightly Build    
 Environment: tomcat 5.0.28, JDK 1.5.0_01
    Reporter: Alessandro Polverini

I made what I think could be the smallest test, and that is the source
of the page:

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="" prefix="h" %>
<%@ taglib uri="" prefix="f" %>
<%@ taglib uri="" prefix="x"%>
    <x:outputText value="MyFaces says current user has role dummy" visibleOnUserRole="dummy"/><BR/>
    servlet says current user has role dummy: <%= request.isUserInRole("dummy") %><BR/>

And the output is:

MyFaces says current user has role dummy
servlet says current user has role dummy: false

So I think something is wrong in myfaces implementation since request.isUserInRole() return
false but outputText is showing the text anyway.
I'm using tomcat 5.0.28 with JDBC realm and authentication it's running fine for the other

Also, would it be best to name the attribute "renderedOnUserRole" to be more consistent with
standard JSF attributes?


This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message