pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pan peter <pan.peter1...@gmail.com>
Subject how to put some bxml code into another bxml file?
Date Wed, 09 Nov 2011 13:00:06 GMT
i have a big bxml file that contains a lot of stuff. now i want to reduce the
size of this bxml file, for example, put some menu bar definition into a new
file menubar.bxml, then how should i define this in main bxml file?

In main bxml I tried replace the MenuBar part with 

        <bxml:include src="menubar.bxml"/>

and inside the menubar.bxml, i have

<menubar xmlns:bxml="http://pivot.apache.org/bxml"
xmlns="org.apache.pivot.wtk.content">	<MenuBar bxml:id="menubar"
		<MenuBar.Item buttonData="File">

then i got null pointer exception while read object for main bxml file.

any suggestions?

View this message in context: http://apache-pivot-users.399431.n3.nabble.com/how-to-put-some-bxml-code-into-another-bxml-file-tp3493447p3493447.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

View raw message