I'm also interested in this. In my application I also have a related issue where I would use a BXML (or BJSON) file to create a graph of context objects where each context object is basically a container for a number of maps. I'd like to be able to include references to JSON files that contain key-value pairs that are then dumped into a given map in one of the context objects.
Then I need to swap key-values from any number of alternate JSON files in/out of a given map in a context object. Likely BXML (or BJSON) would not be required for this because the graph of context object does not need to be rebuilt, only the key-values in given maps need to be swapped or have additional key-values added them. Thom On 2010-11-10, at 6:53 PM, Greg Brown wrote: > It isn't currently supported, though there's nothing to preclude you (or > someone) from writing such support. > G > > On Nov 10, 2010, at 6:33 PM, Christian Schlichtherle wrote: > >> Hi, >> >> I am new to Apache Pivot and try to find an answer to what I guess might be >> an FAQ – but I could not yet find an answer yet. >> >> So here is my question: Is it possible to declare my UI components using >> JSON instead of XML? >> >> I found the class JSONSerializer in the Javadoc for 1.5.2, but it doesn’t >> provide the same interface as WTKXSerializer, so I wonder if it’s possible. >> >> Why I’ld like to use it? Because I am not a particular fan of XML tag soup >> and I think it would be a great architectural feature if Apache Pivot would >> not only provide the freedom of choice of a UI scripting language >> (Jacascript, Groovy etc.), but also the freedom of choice of a UI component >> declaration language. >> >> I’m not sure if it’s feasible at all, however. >> >> Regards, >> Christian Schlichtherle >
