Re: [qooxdoo-devel] list controller does not update list

2015-01-20 Thread Tom Saddul
I prefer to do it my way similar to what I've been doing in the past in my C# web projects. Those codes are actually built in my developed library on top of qooxdoo so there is actually less code. For example, the code below: export class EntryCourse extends ui.EntryNav { construct

Re: [qooxdoo-devel] list controller does not update list

2015-01-19 Thread halcwb
Tom Saddul wrote > This is what I do in TypeScript (qx-typed): > > I created a map of getters and setters taking advantage of closure > technique like this: > > // A function or method to add a SelectBox control > this.addMap(name, control, util.SqlDataType.UByte, >

Re: [qooxdoo-devel] list controller does not update list

2015-01-17 Thread Tom Saddul
This is what I do in TypeScript (qx-typed): I created a map of getters and setters taking advantage of closure technique like this: // A function or method to add a SelectBox control this.addMap(name, control, util.SqlDataType.UByte, (s) => ui.setSelectedI

Re: [qooxdoo-devel] list controller does not update list

2015-01-17 Thread halcwb
Ok, got it now: var comboModel = qx.data.marshal.Json.createModel([]); var form = new qx.ui.form.Form(); var textf = new qx.ui.form.TextField(); var combo = new qx.ui.form.ComboBox(); var comboCtrl = new qx.data.controller.List(null, combo); comboCtrl.setModel(comboModel); form.add(textf, "Text",

[qooxdoo-devel] list controller does not update list

2015-01-17 Thread halcwb
When I run the following code in the console: // Create a model var model = genpres.lib.model.DatabaseConnection.create(); // Create a window var wnd = new qx.ui.window.Window(); wnd.setLayout(new qx.ui.layout.VBox(10)); // Create the form containing a selectbox called PDMStype var form = new genp