Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 14501 invoked from network); 16 Aug 2006 01:53:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2006 01:53:12 -0000 Received: (qmail 78996 invoked by uid 500); 16 Aug 2006 01:53:11 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 78933 invoked by uid 500); 16 Aug 2006 01:53:11 -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 78922 invoked by uid 99); 16 Aug 2006 01:53:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 18:53:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 18:53:10 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D1D2D71429B for ; Wed, 16 Aug 2006 01:50:14 +0000 (GMT) Message-ID: <21567569.1155693014857.JavaMail.jira@brutus> Date: Tue, 15 Aug 2006 18:50:14 -0700 (PDT) From: "Mike Kienenberger (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (TOMAHAWK-596) Duplicate id exception for HtmlDataScrollerRenderer In-Reply-To: <4724386.1155424334227.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/TOMAHAWK-596?page=comments#action_12428284 ] Mike Kienenberger commented on TOMAHAWK-596: -------------------------------------------- I don't see where it's rendering its children in encodeEnd. I'm not an expert on renderers, though. Also, if you could provide a full path in your patches in the future, it'd make applying them easier. It's not always obvious where xyz.java is located. It would also be useful if your patch compiled. Since it doesn't, I'm a bit concerned about applying it :-) It's missing typecasts from UIComponent to UICommandLink, and this makes me think I'm applying untested code. -Mike > Duplicate id exception for HtmlDataScrollerRenderer > --------------------------------------------------- > > Key: TOMAHAWK-596 > URL: http://issues.apache.org/jira/browse/TOMAHAWK-596 > Project: MyFaces Tomahawk > Issue Type: Bug > Components: Data Scroller > Affects Versions: 1.1.3 > Environment: Linux, Windows > Reporter: Ryan Wynn > Attachments: HtmlDataScrollerRenderer.patch > > > In a portlet environment a non-faces request produces an exception when the faces tree is rendered if the faces tree contains a DataScroller component. The HtmlDataScroller renderer actually renders its children twice in this case, once in the encodeChildren method and once in the encodeEnd method. Since rendering of the children is taken care of in encodeEnd I made the encodeChildren method a no-op. Also, although the CommandLinks which are rendered as children are marked as transient, they see to stick around. I put a check in the getLink methods to make sure that the links are not added twice. This seems to fix the duplicate id exception, but it might be necessary to further investigate why they are sticking around in the first place. -- 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