This is from my other email address.
> Ok, so apparently the internal components are qx.data.Arrays as well.
>
> Must you use the new Rest transport to retrieve your data? If you can use
> the old transports, they won't do any of this qx.data.Array conversion
> stuff...
>
> Let's see what you really have here... Please add the following inside of
> your "loaded" handler, and post the output. (You'll need to rerun the
> generator, of course, to include the Debug class.)
>
> qx.dev.Debug.debugObject(e.getData().toArray());
>
>
I'm not using the new Rest transport unless the qx.data.store.Json uses it?
My complete code, minus external class is here, followed by some of the
debug output:
/*
#asset(test1/*)
*/
qx.Class.define("test1.Application",
{
extend : qx.application.Standalone,
members :
{
main : function()
{
this.base(arguments);
// Add log appenders
if (qx.core.Environment.get("qx.debug"))
{
qx.log.appender.Native;
}
this.buildUpGui();
},
buildUpGui : function()
{
// Create application layout
this._createLayout();
},
_createLayout : function()
{
// Create main layout
var dockLayout = new qx.ui.layout.Dock();
var dockLayoutComposite = new qx.ui.container.Composite(dockLayout);
this.getRoot().add(dockLayoutComposite, {edge:0});
// Create horizontal splitpane for main layout
this.__horizontalSplitPane = new qx.ui.splitpane.Pane();
dockLayoutComposite.add(this.__horizontalSplitPane);
// Create tree view on the left side of splitpane
this.__kioskTree = new test1.KioskTree();
this.__kioskTree.setWidth(250);
this.__kioskTree.setPadding(0);
this.__scroller = new qx.ui.container.Scroll();
this.__scroller.add(this.__kioskTree);
this.__horizontalSplitPane.add(this.__scroller, 0);
this.__mapTabView = new qx.ui.tabview.TabView();
this.__horizontalSplitPane.add(this.__mapTabView, 1);
this.__kioskTree.addListener("dblclick",
function (e) {
var treeItem = e.getTarget();
if ( ! treeItem.hasChildren() ) {
var tlbl = treeItem.getLabel();
this.__mapTabView.add(this._createKioskTab (tlbl));
}
}
,this);
this.__mapTabView.addListener("dblclick",
function (e) {
console.log("double click on tab");
var tabItem = this.__mapTabView.getSelection()[0];
this.__mapTabView.remove(tabItem);
}
,this);
},
_createKioskTab : function(label) {
var __kioskPage = new qx.ui.tabview.Page(label);
__kioskPage.setLayout(new qx.ui.layout.VBox());
var __label = new qx.ui.basic.Label(label);
var __kioskContainer = new qx.ui.container.Composite();
__kioskContainer.setLayout(new qx.ui.layout.Basic());
var __tableModel = new qx.ui.table.model.Simple();
__tableModel.setColumns([ "Date", "DelayAvg", "First", "Last" ]);
var url = "/avg_checkin_times/" + label;
var jsonFetcher = new qx.data.store.Json(null);
jsonFetcher.addListener("loaded", function(e) {
qx.dev.Debug.debugObject(e.getData().toArray(), "event data", 2);
var tData = e.getData();
__tableModel.setData(tData);
}, this);
jsonFetcher.setUrl(url);
var table = new qx.ui.table.Table(__tableModel).set({
decorator: null
});
__kioskContainer.add(__label);
__kioskContainer.add(table);
__kioskPage.add(__kioskContainer);
return __kioskPage;
}
}
});
Top part of debug output. Even at 2 levels, it's a huge amount of output.
How much of it do you want?
019940 qx.dev.Debug: event data Array, length=7:
------------------------------------------------------------ 0: Object
$$hash: 929-0 __array: Array 0: 2011-12-29 1: 7.6 2: 0:03:39 3: 10:15:08
length: 4 0: Please use 'toArray()' to see the content. $$initialized: true
$$user_autoDisposeItems: true __userData: Object idBubble-928-0: Array ***
TOO MUCH RECURSION: not displaying *** classname: qx.data.Array name:
qx.data.Array basename: Array constructor: [Class qx.data.Array]
$$init_autoDisposeItems: false
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel