pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calathus <calat...@gmail.com>
Subject [pivot] <bxml:include value="$abc">, <bxml:include src="abc.js">
Date Wed, 12 Jan 2011 09:49:58 GMT
Hi,
I think the current Pivot's BXML file does not allow to refer to externally
constructed Pivot object(e.g, PushButton).
for instance, following code embed an object generated by another bxml file.

<TextPane bxml:id="textPane" styles="{margin:10, wrapText:false}">
  <bxml:include src="document.bxml"/>
</TextPane>

It would be useful if BXML file allows to embed object which is created
outside of BXML file:

<TextPane bxml:id="textPane" styles="{margin:10, wrapText:false}">
  <bxml:include value="$abc"/>
</TextPane>

My usage scenario is to create some Pivot object in Java, and use BXML file
for flexible layout engine.
This idea is related to CRUD library where Java Bean fields will be mapped
to some GUI elements for user interaction (like TextInput, RadioButton) by
annotation, since  they are closely related to the field type.
in this scenario, these leaf level Pivot objects are created in the Generic
library for CRUD, and BXML serializer will combine these objects in a proper
layout.

This will be an interesting combination of Generic class and BXML. They'll
have a clean separation of the roles. Generic class's main role is data
plumbing while that of  BXML is layout.

Are there any reason to restrict bxml:include for another bxml file?

-- 
Cheers,
calathus

Mime
View raw message