Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 4062 invoked from network); 22 Apr 2008 07:00:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Apr 2008 07:00:50 -0000 Received: (qmail 9297 invoked by uid 500); 22 Apr 2008 07:00:50 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 9256 invoked by uid 500); 22 Apr 2008 07:00:50 -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 9244 invoked by uid 99); 22 Apr 2008 07:00:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2008 00:00:50 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Apr 2008 07:00:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 281E4234C100 for ; Mon, 21 Apr 2008 23:57:28 -0700 (PDT) Message-ID: <76645004.1208847448163.JavaMail.jira@brutus> Date: Mon, 21 Apr 2008 23:57:28 -0700 (PDT) From: "Bernd Bohmann (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Resolved: (MYFACES-1825) duplicate ids not detected in JspStateManagerImpl.checkForDuplicateIds() In-Reply-To: <2123783207.1204038893926.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernd Bohmann resolved MYFACES-1825. ------------------------------------ Resolution: Fixed > duplicate ids not detected in JspStateManagerImpl.checkForDuplicateIds() > ------------------------------------------------------------------------- > > Key: MYFACES-1825 > URL: https://issues.apache.org/jira/browse/MYFACES-1825 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 1.1.5 > Reporter: gaston > Assignee: Bernd Bohmann > Fix For: 1.1.6-SNAPSHOT, 1.2.3-SNAPSHOT > > > Some duplicate id are not detected in my MyFaces(1.1.5)/Facelets(1.1.12) based application. > I think there's a bug in MyFaces's detection of duplicate ids in JspStateManagerImpl.checkForDuplicateIds() : > this code seems to be wrong : > boolean namingContainer = component instanceof NamingContainer; > while (it.hasNext()) { > UIComponent kid = (UIComponent) it.next(); > if (namingContainer) { > checkForDuplicateIds(context, kid, new HashSet()); > } > else { > checkForDuplicateIds(context, kid, ids); > } > } > It should be : > while (it.hasNext()) { > UIComponent kid = (UIComponent) it.next(); > boolean namingContainer = kid instanceof NamingContainer; > if (namingContainer) { > checkForDuplicateIds(context, kid, new HashSet()); > } > else { > checkForDuplicateIds(context, kid, ids); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.