Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 35417 invoked from network); 24 Sep 2009 03:30:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 03:30:38 -0000 Received: (qmail 35131 invoked by uid 500); 24 Sep 2009 03:30:38 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 35029 invoked by uid 500); 24 Sep 2009 03:30:38 -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 35015 invoked by uid 99); 24 Sep 2009 03:30:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 03:30:37 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 03:30:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 52815234C4B1 for ; Wed, 23 Sep 2009 20:30:05 -0700 (PDT) Message-ID: <891247673.1253763005336.JavaMail.jira@brutus> Date: Wed, 23 Sep 2009 20:30:05 -0700 (PDT) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2137) JSF 2.0 Component Tree Visiting In-Reply-To: <5059107.1232493601669.JavaMail.jira@brutus> 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-2137?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 758990#action_12758990 ]=20 Leonardo Uribe commented on MYFACES-2137: ----------------------------------------- I have some comments about the patch: - We need to traverse facets and facets inside child components only once. = Take a look at UIData.invokeOnComponent, you will see that facets are trave= rse only once with rowIndex=3D-1 (no row selected) - Spec says: "Let rowsToProcess be the return from getRows().", but a resul= t of 0 from getRows() means all rows. In that case should rowsToProcess be = getRowCount()? No. The difference is that getRows() means the max rows to = be displayed. That is because it is not necessary to traverse all rows when= we only expect to traverse the rows we are going to display. note that we = call isRowAvailable() to check if the row exists or not. - Spec says: "Let rowIndex be the return from getFirst() - 1.", but then yo= u would start the iteration with a rowIndex of -1 (if getFirst() returns 0)= and you would end one row to early. For example you have 3 rows 0, 1 and 2= , so visitTree would visit the rows -1, 0 and 1. So why should we start at = getFirst() - 1? The intention is traverse all rows that exists. Maybe this = is a detail on the algorithm used by ri, so we can ignore this part while w= e maintain the intention of the algorithm (but see comment below). - Note that UIColum instances should be traverse only once (with rowIndex= =3D-1), because traverse them per row just does not have sense. Also in my = opinion, does not have sense how the algorithm works with facets of childre= n component. Maybe it is a good idea to send a mail to jsr-314-comments at = jcp.org saying this javadoc is not very clear (specially the last two point= s). > JSF 2.0 Component Tree Visiting > ------------------------------- > > Key: MYFACES-2137 > URL: https://issues.apache.org/jira/browse/MYFACES-2137 > Project: MyFaces Core > Issue Type: New Feature > Components: JSR-314 > Affects Versions: 2.0.0-alpha > Reporter: Matthias We=C3=9Fendorf > Attachments: uidata_visit_tree.patch > > > The Tree Visiting, part of jsf2.0, was already added to Trinidad 1.2.x to= improve things.=20 > We just need to add the api/impl from that patch, to this project. > see TRINIDAD-1368 for more. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.