That's not a bug. Tablemodel should have columns defined before you say
table.setTableModel(tableModel);. Even if you wan't to set tableModel
after you defined Table, what's the problem to set columns first:
tableModel.setColumns([ "ID", "A number", "A date", "Boolean test"
]);
table.setTableModel(tableModel);
?
Hi
all,
I need to create a qx.ui.table.Table (with no tableModel set to it),
then (and only then) to set to it a tableModel with columns and rows.
The problem is : the table's columns (and rows) don't appear (the table
seems empty) ; and yet cols and rows are correctly registered into the
table's tableModel : you can even select the rows by clicking where
they should be ("1 of 2 rows selected"...).
var table = new qx.ui.table.Table(new
qx.ui.table.SimpleTableModel()); //param SimpleTableModel is empty but
needed
table.set({ left:10, top:30, width:400, height:100 });
var tableModel = new qx.ui.table.SimpleTableModel();
table.setTableModel(tableModel);
// the table rows (and columns) don't appear
tableModel.setColumns([ "ID", "A number", "A date", "Boolean test"
]); // but rows are actually correctly registered
tableModel.setData([[ 0, 123, "Today", true ],[ 1, 456, "Thursday",
false ]]);
this bug does not occur if you first define the columns of the
tableModel, then set that tableModel to the table:
tableModel.setColumns([ "ID", "A number", "A date", "Boolean test"
]);
table.setTableModel(tableModel);
Ok, the the usual use of a table is 1) fill its tableModel, then 2)
call myTable.setTableModel(..), but i came accross this situation
because of the needs of my app, and that seems like a bug, isn't it?...
Best regards
Elie Dumas
Découvrez une nouvelle façon d'obtenir des réponses à
toutes vos questions ! Profitez des connaissances, des opinions et des
expériences des internautes sur Yahoo!
Questions/Réponses.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
|
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel