pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahzad Bhatti <sbha...@peak6.com>
Subject Re: Binding data with BXMLSerializer
Date Wed, 31 Aug 2011 19:12:21 GMT
One more clarification, I am implementing Bindable interface and all
components defined in main.bxml are getting bound correctly. Only,
included files are not being bound.

On 8/31/11 12:10 PM, "Shahzad Bhatti" <sbhatti@peak6.com> wrote:

>I have an old 1.5 app that I am upgrading to use 2.0. I am replacing
>WTKXSerializer with BXMLSerializer but I am not getting include behavior
>correctly. I have a main.bxml file that has tab-pans and includes another
>bxml file, e.g.
>
>
>
><tabs>
>
><BoxPane styles="{horizontalAlignment:'center', verticalAlignment:'top'}">
>
><bxml:include src="tasks_tab.bxml" />
>
></BoxPane>
>
>
>
>However, it looks like it's not adding the included file to the namspace
>as I the @BXML attributes are null.
>In my code I do:
>
>this.bxmlSerializer = new BXMLSerializer();
>
>this.window = (Window) bxmlSerializer.readObject(getClass()
>
>.getResource("main.bxml"), resources);
>
>bxmlSerializer.bind(this, Main.class);
>
>
>Secondary question is how to use namespace scope with BXML as I didn't
>see any examples. Thanks.
>
>
>
>______________________________________________
>
>See  http://www.peak6.com/email_disclaimer.php
>for terms and conditions related to this email


Mime
View raw message