You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Georg Adelmann <Ge...@gmx.de> on 2013/01/24 17:33:34 UTC

Two small issues with the bxml primer

Hey there,

had some time to dig into pivot a bit, still scratching the surface and found one (potentially two) small mistakes in the bxml-primer document
http://pivot.apache.org/tutorials/bxml-primer.html

1. a missing end / in the section "The Bindable Interface" at the end:
The code-examples last <Window> should have an end-marking </Window> instead of <Window at the end> - pivot correctly complained about that :)
Here the original code snippet:

<Window xmlns="org.apache.pivot.wtk"
    xmlns:bxml="http://pivot.apache.org/bxml">
    <Label bxml:id="label" text="Hello, World!"/>
<Window>

2. I think the example for "Accessing Named Objects" also needs a small fix:
The line

Label label = bxmlSerializer.getNamespace().get("label");

does throw an error, since it needs to be cast from Object to Label, which is missing there for some reason. I hope that is not my mistake somewhere in the configuration.

Warm regards and thanks for this piece of software, the more I get to know it the more I like it - hey you made me start learning bxml :)
Georg

RE: Two small issues with the bxml primer

Posted by "Roger L. Whitcomb" <Ro...@actian.com>.
Hi Georg,
	Thanks for using Pivot! And thank you for the encouragement. 
	I have updated the web page source with these two changes, and the actual site will be updated "soon".  I actually caught a couple of other typos in that page also.  Thank you for the update.

~Roger Whitcomb

-----Original Message-----
From: Georg Adelmann [mailto:GeoAdel@gmx.de] 
Sent: Thursday, January 24, 2013 8:34 AM
To: user@pivot.apache.org
Subject: Two small issues with the bxml primer

Hey there,

had some time to dig into pivot a bit, still scratching the surface and found one (potentially two) small mistakes in the bxml-primer document http://pivot.apache.org/tutorials/bxml-primer.html

1. a missing end / in the section "The Bindable Interface" at the end:
The code-examples last <Window> should have an end-marking </Window> instead of <Window at the end> - pivot correctly complained about that :) Here the original code snippet:

<Window xmlns="org.apache.pivot.wtk"
    xmlns:bxml="http://pivot.apache.org/bxml">
    <Label bxml:id="label" text="Hello, World!"/> <Window>

2. I think the example for "Accessing Named Objects" also needs a small fix:
The line

Label label = bxmlSerializer.getNamespace().get("label");

does throw an error, since it needs to be cast from Object to Label, which is missing there for some reason. I hope that is not my mistake somewhere in the configuration.

Warm regards and thanks for this piece of software, the more I get to know it the more I like it - hey you made me start learning bxml :) Georg