Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54E2C4C67 for ; Mon, 6 Jun 2011 16:43:40 +0000 (UTC) Received: (qmail 60974 invoked by uid 500); 6 Jun 2011 16:43:40 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 60944 invoked by uid 500); 6 Jun 2011 16:43:40 -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 60936 invoked by uid 99); 6 Jun 2011 16:43:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 16:43:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gk_brown@verizon.net designates 206.46.173.19 as permitted sender) Received: from [206.46.173.19] (HELO vms173019pub.verizon.net) (206.46.173.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 16:43:31 +0000 Received: from [192.168.1.15] ([unknown] [98.110.173.176]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LMD00ML3NRX2X01@vms173019.mailsrvcs.net> for user@pivot.apache.org; Mon, 06 Jun 2011 11:43:10 -0500 (CDT) From: Greg Brown MIME-version: 1.0 (Apple Message framework v1084) Content-type: multipart/alternative; boundary=Apple-Mail-3-506391185 Subject: Re: Examples still using namespace.get() instead of @BXML Date: Mon, 06 Jun 2011 12:43:09 -0400 In-reply-to: <4DECFF4F.7060409@sysedata.no> To: user@pivot.apache.org References: <4DECFF4F.7060409@sysedata.no> Message-id: X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-3-506391185 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 This is actually done for a reason. @BXML only works for trusted code. = Using get() allows many of the tutorials to be executed as unsigned = applets. On Jun 6, 2011, at 12:24 PM, Edvin Syse wrote: > I noticed on for example = http://pivot.apache.org/tutorials/data-binding.html components are = extracted from the namespace manually instead of using the @BXML = annotation. I think it is important to upgrade this to not discourage = new potential users of the framework, as: >=20 > loadJavaButton =3D (PushButton)namespace.get("loadJavaButton"); >=20 > looks horrible compared to: >=20 > @BXML PushButton loadJavaButton; >=20 > Is there a ticket or plan to upgrade the examples? >=20 > -- Edvin _____ Big Life: It's What You Make It=99 --Apple-Mail-3-506391185 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 This = is actually done for a reason. @BXML only works for trusted code. Using = get() allows many of the tutorials to be executed as unsigned = applets.

On Jun 6, 2011, at 12:24 PM, Edvin Syse = wrote:

I noticed on for example http://pivot.= apache.org/tutorials/data-binding.html components are extracted from = the namespace manually instead of using the @BXML annotation. I think it = is important to upgrade this to not discourage new potential users of = the framework, as:

loadJavaButton =3D = (PushButton)namespace.get("loadJavaButton");

looks horrible = compared to:

@BXML PushButton loadJavaButton;

Is there a = ticket or plan to upgrade the examples?

-- = Edvin

_____
Big Life: It's What You Make = It

= --Apple-Mail-3-506391185--