Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 75783 invoked from network); 19 Aug 2005 02:42:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 02:42:34 -0000 Received: (qmail 71572 invoked by uid 500); 19 Aug 2005 02:42:32 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 71432 invoked by uid 500); 19 Aug 2005 02:42:31 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 71054 invoked by uid 99); 19 Aug 2005 02:42:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2005 19:42:28 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 15788E5 for ; Fri, 19 Aug 2005 04:42:27 +0200 (CEST) Message-ID: <1872416595.1124419347086.JavaMail.jira@ajax.apache.org> Date: Fri, 19 Aug 2005 04:42:27 +0200 (CEST) From: "Martin Marinschek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Closed: (MYFACES-114) visibleOnUserRole not working Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-114?page=all ] Martin Marinschek closed MYFACES-114: ------------------------------------- Assign To: Manfred Geiler > visibleOnUserRole not working > ----------------------------- > > Key: MYFACES-114 > URL: http://issues.apache.org/jira/browse/MYFACES-114 > Project: MyFaces > Type: Bug > Versions: Nightly Build > Environment: tomcat 5.0.28, JDK 1.5.0_01 > Reporter: Alessandro Polverini > Assignee: Manfred Geiler > > 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="http://java.sun.com/jsf/html" prefix="h" %> > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> > <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> > > >
> servlet says current user has role dummy: <%= request.isUserInRole("dummy") %>
>
> > 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 aspects. > Also, would it be best to name the attribute "renderedOnUserRole" to be more consistent with standard JSF attributes? > Thanks, > Alex -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira