Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 23732 invoked from network); 3 May 2010 22:25:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 22:25:19 -0000 Received: (qmail 12744 invoked by uid 500); 3 May 2010 22:25:19 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 12725 invoked by uid 500); 3 May 2010 22:25:19 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 12717 invoked by uid 99); 3 May 2010 22:25:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 22:25:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gkbrown@mac.com designates 17.148.16.103 as permitted sender) Received: from [17.148.16.103] (HELO asmtpout028.mac.com) (17.148.16.103) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 22:25:10 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from [192.168.1.13] ([173.76.183.203]) by asmtp028.mac.com (Sun Java(tm) System Messaging Server 6.3-8.01 (built Dec 16 2008; 32bit)) with ESMTPSA id <0L1V00J517L89Q20@asmtp028.mac.com> for user@pivot.apache.org; Mon, 03 May 2010 15:24:46 -0700 (PDT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0908210000 definitions=main-1005030133 Subject: Re: How to retrieve wtkx:id? From: Greg Brown X-Priority: 3 (Normal) In-reply-to: <1272924986.466518659@192.168.2.231> Date: Mon, 03 May 2010 18:24:43 -0400 Message-id: <5AA9D947-A184-4406-B5C9-8EAEE8073069@mac.com> References: <1272896411.38744246@192.168.2.227> <37153974-5726-4E1F-92A1-FE750F463F3D@mac.com> <1272924986.466518659@192.168.2.231> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1078) X-Virus-Checked: Checked by ClamAV on apache.org I understand why you might expect it to work that way, especially if you are coming from HTML, but it doesn't. Consider that Java member variables are also accessible via reflection, but you still can't get a variable name from a class instance. WTKX isn't a DOM - it's just another way of instantiating classes. Hope that helps clarify things. Greg On May 3, 2010, at 6:16 PM, Patrick Shea wrote: > Well, they are declared in xml as id's and used in code in get(...) so they are quite public. > > I was able to go around this by reflection but it's ugly and they should really be exposed at the component level I think. > > Patrick > > -----Original Message----- > From: "Greg Brown" > Sent: Monday, May 3, 2010 6:07pm > To: user@pivot.apache.org > Subject: Re: How to retrieve wtkx:id? > > No. WTKX IDs don't work like HTML IDs - they are more like variable names. Just as there is no way to retrieve a variable name from an object instantiated in Java, there is no way to retrieve an ID from an object declared in WTKX. > > On May 3, 2010, at 10:20 AM, Patrick Shea wrote: > >> Is there a way to get the wtkx:id of a given component? >> >> Thanks >> Patrick >> > > >