Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 79497 invoked from network); 8 May 2007 16:36:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 16:36:19 -0000 Received: (qmail 89847 invoked by uid 500); 8 May 2007 16:36:19 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 89815 invoked by uid 500); 8 May 2007 16:36:19 -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 89804 invoked by uid 99); 8 May 2007 16:36:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 09:36:18 -0700 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=HTML_MESSAGE,RCVD_IN_WHOIS_INVALID X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [198.137.214.10] (HELO usy90mx00.tycoelectronics.net) (198.137.214.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 09:36:10 -0700 Received: from us194mx16.tycoelectronics.net ([163.241.185.153]) by usy90mx00.tycoelectronics.net with Microsoft SMTPSVC(6.0.3790.1830); Tue, 8 May 2007 12:35:48 -0400 Received: from us358mx02.tycoelectronics.net ([148.174.34.35]) by us194mx16.tycoelectronics.net with Microsoft SMTPSVC(6.0.3790.2499); Tue, 8 May 2007 12:35:48 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7918E.EEB4A1E4" Subject: [Trinidad] Setting initial expanded state in tree Date: Tue, 8 May 2007 12:35:47 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Trinidad] Setting initial expanded state in tree Thread-Index: AceRju5RN2ObzCnhTDyTI2LJ7Xc9yg== From: "Bertrand, Shawn R" To: X-OriginalArrivalTime: 08 May 2007 16:35:48.0588 (UTC) FILETIME=[EF1542C0:01C7918E] X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C7918E.EEB4A1E4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I'd like to set the initial expanded state in my tree such that only the top-level root node is expanded. In my case, there is only one root node and it may have one or more child nodes. =20 I thought the following would do it, but the second call to getKeySet() on the PathSet object returns null: =20 // Collapse all nodes CoreTree tree =3D getTree(); tree.getTreeState().getKeySet().clear(); =20 // Add the first (top-level) node to the current path=20 ArrayList path =3D new ArrayList(); path.add(new String("0")); tree.getTreeState().getKeySet().add(path); =20 What is wrong with this technique? =20 Thanks in advance, =20 Shawn Bertrand Tyco Electronics =20 =20 ------_=_NextPart_001_01C7918E.EEB4A1E4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’d like to set the initial expanded state in = my tree such that only the top-level root node is expanded.  In my case, = there is only one root node and it may have one or more child = nodes.

 

I thought the following would do it, but the second = call to getKeySet() on the PathSet object returns = null:

 

// Collapse all nodes

CoreTree tree =3D = getTree();

tree.getTreeState().getKeySet().clear();

 

// Add the first (top-level) node to the current path =

ArrayList<String> path =3D new ArrayList<String>();

path.add(new = String("0"));

tree.getTreeState().getKeySet().add(path);<= /span>

 

What is wrong with this = technique?

 

Thanks in advance,

 

Shawn Bertrand

Tyco Electronics

 

 

------_=_NextPart_001_01C7918E.EEB4A1E4--