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 2C85D6698 for ; Wed, 1 Jun 2011 13:23:44 +0000 (UTC) Received: (qmail 29924 invoked by uid 500); 1 Jun 2011 13:23:44 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 29894 invoked by uid 500); 1 Jun 2011 13:23:44 -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 29886 invoked by uid 99); 1 Jun 2011 13:23:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:23:44 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gk_brown@verizon.net designates 206.46.173.5 as permitted sender) Received: from [206.46.173.5] (HELO vms173005pub.verizon.net) (206.46.173.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2011 13:23:36 +0000 Received: from [192.168.1.15] ([unknown] [98.110.173.176]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM400BB856NKMWV@vms173005.mailsrvcs.net> for user@pivot.apache.org; Wed, 01 Jun 2011 08:23:12 -0500 (CDT) Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Apple Message framework v1084) Subject: Re: BXML Rendering From: Greg Brown In-reply-to: <1306933967882-3010653.post@n3.nabble.com> Date: Wed, 01 Jun 2011 09:23:11 -0400 Content-transfer-encoding: quoted-printable Message-id: References: <1306933967882-3010653.post@n3.nabble.com> To: user@pivot.apache.org X-Mailer: Apple Mail (2.1084) X-Virus-Checked: Checked by ClamAV on apache.org Yup, very easy. Just use BXMLSerializer to load the text the user = enters. You may need to wrap it in a StringReader to pass to = readObject(). The only real trick is how to get it on screen. Every UI element in a = Pivot app must ultimately be contained by some kind of Window. You could = require your users to create a Window (or subclass) as a root element, = but that might be kind of limiting. Alternatively, if you allow them to = create any kind of component except Window (and Display) as a root = element, you could open your preview in a Frame, or the right-hand side = of a SplitPane, etc. G On Jun 1, 2011, at 9:12 AM, noobmike wrote: > Hey Experts, I have yet another question for you! >=20 > In my App, I want to essentially render user typed bxml code(say in a = text > area) and have it shown (functional preferably if not that's fine too) = in > real time. Or as close to real time as possible, so if they have to = click a > "Render Code" button so be it.=20 >=20 > Is this possible? I read a previous thread that was somewhat similar, = but am > not sure if its exactly what I am trying to do.=20 >=20 > Any suggestions?=20 >=20 > Thanks for your wisdom >=20 > Mike. >=20 > -- > View this message in context: = http://apache-pivot-users.399431.n3.nabble.com/BXML-Rendering-tp3010653p30= 10653.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.