Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 77646 invoked from network); 8 Jul 2010 21:29:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 21:29:16 -0000 Received: (qmail 24089 invoked by uid 500); 8 Jul 2010 21:29:15 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 24043 invoked by uid 500); 8 Jul 2010 21:29:15 -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 24031 invoked by uid 99); 8 Jul 2010 21:29:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 21:29:14 +0000 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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 21:29:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o68LSoun023904 for ; Thu, 8 Jul 2010 21:28:50 GMT Message-ID: <20656352.268901278624530430.JavaMail.jira@thor> Date: Thu, 8 Jul 2010 17:28:50 -0400 (EDT) From: "Jakob Korherr (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2744) UIData.getClientId() should not append rowIndex, instead use UIData.getContainerClientId() In-Reply-To: <7864316.196821275715709638.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2744?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 886488#action_12886488 ]=20 Jakob Korherr commented on MYFACES-2744: ---------------------------------------- Great! Yes of course, you're right. I did not think of that. Now we can close the issue :) > UIData.getClientId() should not append rowIndex, instead use UIData.getCo= ntainerClientId() > -------------------------------------------------------------------------= ----------------- > > Key: MYFACES-2744 > URL: https://issues.apache.org/jira/browse/MYFACES-2744 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.0 > Reporter: Leonardo Uribe > Assignee: Jakob Korherr > Fix For: 2.0.1-SNAPSHOT > > > from: [jsr-314-open] Ajax inside a DataTable > Cagatay Civici > I've faced with an issue in our app I'd like to share when trying to upda= te the datatable itself from a command element located inside a column. Cas= e is to select a row, execute logic and update the datatable. Basic code: > > > > Model > > > > > > Action > > > > > > > As datatable has a rowIndex >=3D 0 during rendering of commandButton f:aj= ax defines the component id to render as cars:{rowIndex} where I should exp= ect "cars" only. This is due to UIData.getClientId implementation as UIData > adds rowIndex for unique row ids. This causes an issue with a nested f:aj= ax case. > Martin Marinschek > We should never include the row-index in the client-id of the table > itself. For this, we need to revise the client-id generation > algorithm. > Without actually having tried it, I think that it is easy to do so, as > we have a UIComponentBase.getContainerClientId() to create the > client-id of the children - when this method is called, we append the > row-index, if getClientId() itself is called, we don=C2=B4t.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.