Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7928BD142 for ; Wed, 19 Sep 2012 16:49:08 +0000 (UTC) Received: (qmail 95868 invoked by uid 500); 19 Sep 2012 16:49:07 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 95778 invoked by uid 500); 19 Sep 2012 16:49:07 -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 95769 invoked by uid 99); 19 Sep 2012 16:49:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 16:49:07 +0000 Date: Thu, 20 Sep 2012 03:49:07 +1100 (NCT) From: "Mike Kienenberger (JIRA)" To: dev@myfaces.apache.org Message-ID: <920366293.97996.1348073347765.JavaMail.jiratomcat@arcas> In-Reply-To: <1276544927.96595.1348043107493.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (MYFACES-3609) rendered attribute of f:selectItem is not evaluated within h:selectOneListbox MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458836#comment-13458836 ] Mike Kienenberger commented on MYFACES-3609: -------------------------------------------- You can see this posting for possible workarounds. http://stackoverflow.com/questions/6932034/can-i-specify-a-conditional-rendering-for-an-fselectitem-tag > rendered attribute of f:selectItem is not evaluated within h:selectOneListbox > ----------------------------------------------------------------------------- > > Key: MYFACES-3609 > URL: https://issues.apache.org/jira/browse/MYFACES-3609 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.1.8 > Reporter: Rene O > > If you use the rendered attribute of f:selectItem within h:selectOneListBox, it is not evaluated. In the example below you can see, that an item with rendered-condition false is rendered, which is not the expected behaviour. > Example: > > xmlns:h="http://java.sun.com/jsf/html" > xmlns:f="http://java.sun.com/jsf/core" > xmlns:ui="http://java.sun.com/jsf/facelets" > > > > JSF Test > > > > > > > > >
> output rendered condition selectItem 'B': #{'1' eq '2'} >
> you can see, that selectItem is rendered while rendered condition is false. >
> it looks like, that attribute 'rendered' is not evaluated at all. >
>
> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira