Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 59944 invoked from network); 20 Mar 2008 13:25:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2008 13:25:19 -0000 Received: (qmail 2534 invoked by uid 500); 20 Mar 2008 13:25:14 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 2492 invoked by uid 500); 20 Mar 2008 13:25:13 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 2481 invoked by uid 99); 20 Mar 2008 13:25:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 06:25:13 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [213.179.137.23] (HELO mx1.cadenas.de) (213.179.137.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2008 13:24:35 +0000 From: "Martin Schlierf" To: Subject: JSF TreeWalker returns true for last node Date: Thu, 20 Mar 2008 14:22:22 +0100 Message-ID: <014101c88a8d$6e132770$4a397650$@Schlierf@cadenas.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0142_01C88A95.CFD78F70" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AciKjW3QaMWk5qDKTW6DLWR4pli1nA== Content-Language: de X-Virus-Checked: Checked by ClamAV on apache.org Dies ist eine mehrteilige Nachricht im MIME-Format. ------=_NextPart_000_0142_01C88A95.CFD78F70 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, I have a tree component which shows folders and files. If the root has some folders and files there is no problem. (The last next call returns false) If the root only has files (isLeaf() returns true for all nodes) the last next call returns true. I think it should return false because there is no next node. I implemented a function that will not return a new TreeWalker until the last one has finished walking. (I did this because of other problems with lazy loading) So for a root node with children that are all leafs, I can not set the finished walking to true because the next never returns false. Who can help me with this? Thanks, Martin ------=_NextPart_000_0142_01C88A95.CFD78F70 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi,

I have a tree component which = shows folders and files.

 

If the root has some folders and = files there is no problem. (The last next call returns = false)

 

If the root only has files = (isLeaf() returns  true for all nodes) the last next call returns = true.

I think it should return false = because there is no next node.

 

I implemented a function that = will not return a new TreeWalker until the last one has finished walking. (I did = this because of other problems with lazy loading)

 

So for a root node with children = that are all leafs, I can not set the finished walking to true because the next = never returns false.

 

Who can help me with = this?

 

Thanks, = Martin

------=_NextPart_000_0142_01C88A95.CFD78F70--