Re: [qooxdoo-devel] Data binding question

2012-11-30 Thread Marc Puts
On 11/28/2012 10:52 PM, angelo wrote: > BTW - is this playground >

Re: [qooxdoo-devel] Data binding question

2012-11-28 Thread angelo
Surprising I typed up this in the playground and it seems to work. // Get the data (from a JSON server call) var JsonModel = {"author": "system", "fields": [{"default": null, "lowerbound": null, "type": "string", "name": "filterfield", "upperbound": null},

Re: [qooxdoo-devel] Data binding question

2012-11-27 Thread angelo
I guess you're right, I shouldn't try to rush the question through and hope someone can solve it from little scraps. I'll put it in the playground tonight. Angelo -- View this message in context: http://qooxdoo.678.n2.nabble.com/Data-binding-question-tp7582102p7582143.html Sent from the qooxdo

Re: [qooxdoo-devel] Data binding question

2012-11-27 Thread Martin Wittemann
There is still no array. Why don't you just put together a little sample in the qoxdoo playground where everybody can se the problem in code? http://demo.qooxdoo.org/current/playground/ Am 26.11.2012 um 13:01 schrieb angelo mailto:[email protected]>>: My bad... the structure shoul

Re: [qooxdoo-devel] Data binding question

2012-11-26 Thread angelo
My bad... the structure should've been something like this in my initial mail: { ..., 'fields' { { 'name':'value', 'type':'anothervalue' }, { 'name':'thirdvalue',

Re: [qooxdoo-devel] Data binding question

2012-11-26 Thread Martin Wittemann
Hey, I don't see an array in your posted data structure so I'm wondering why the debug statement is working? Could you check the classname (getFields().classname) and see if thats an data array? If yes, your posted data could not be correct because there is no array in it. Or there is a bug in

[qooxdoo-devel] Data binding question

2012-11-25 Thread angelo
I'm wondering about the following. At some point in an application I'm building, my model has a structure like this (don't bother about syntax details, I'm only posting a quick example): { 'fields': { 'name' : 'somevalue', 'type' : 'someothervalue' } } Inside my

Re: [qooxdoo-devel] data binding question

2010-03-15 Thread hkalyoncu
hi thanks for the help martin i changed the code as you suggested and it worked. thanks again. -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4735640.html Sent from the qooxdoo mailing list archive at Nabble.com. ---

Re: [qooxdoo-devel] data binding question

2010-03-12 Thread MartinWittemann
Hi, me again. I found the source of the problem! You are binding the selection of the second list (!!!) and not of the second controller. Using the controllers selection works as suspected: cont.addTarget(control2, "selection[0]", "param1", true); Its always a good idea to keep the selection han

Re: [qooxdoo-devel] data binding question

2010-03-12 Thread MartinWittemann
Hey, I had a look at your example and i found at least the reason for your trouble. It's the binding of the object controller: cont.addTarget(lbox2, "selection", "param1", true); To be specific, it's the bidirectional flag at the end of the binding. Are you sure you want the binding bidirection

Re: [qooxdoo-devel] data binding question

2010-03-10 Thread hkalyoncu
hi martin please look at this http://bit.ly/9XdGUk while firebug is active -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4708252.html Sent from the qooxdoo mailing list archive at Nabble.com. --

Re: [qooxdoo-devel] data binding question

2010-03-10 Thread MartinWittemann
Hi, your code does not look wrong to me. I need to dig in deeper to see whats going wrong. Don't you have a playground example where I can see the behavior and what's wrong? Regards, Martin -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4708201.html Sent fr

Re: [qooxdoo-devel] data binding question

2010-03-10 Thread hkalyoncu
hello following code part is including the two list boxes and the form controller i mentioned before: var lbox1 = new qx.ui.form.List(); var control1 = new qx.data.controller.List(null, lbox1); control1.setLabelPath("text"); var url1 = "path_to

Re: [qooxdoo-devel] data binding question

2010-03-09 Thread MartinWittemann
Hello, do you have some example code for me? I don't even know your exact structure so its hard for me to tell what could possibly be the problem. Regards, Martin -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4703191.html Sent from the qooxdoo mailing list

Re: [qooxdoo-devel] data binding question

2010-03-09 Thread MartinWittemann
Hello, do you have some example code for me? I don't even know your exact structure so its hard for me to tell what could possibly be the problem. Regards, Martin -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4703174.html Sent from the qooxdoo mailing list

Re: [qooxdoo-devel] data binding question

2010-03-09 Thread hkalyoncu
hi i think i found the source of problem. i have also a form controller for form submit and there is a binding for the second list box selection with this form controller: formController.addTarget(listbox2, "selection", "param2", true); if i remove the above line there is no such "too much recur

Re: [qooxdoo-devel] data binding question

2010-03-09 Thread hkalyoncu
hi i think i found the source of problem. i have also a form controller for form submit and there is a binding for the second list box selection with this form controller: formController.addTarget(listbox2, "selection", "param2", true); if i remove the above line there is no such "too much recur

Re: [qooxdoo-devel] data binding question

2010-03-09 Thread hkalyoncu
hi i did it as in the example. but weirdly i got "too much recursion" error after some browsing across the first list box items. after this error content of the second list box stop updating and the script becomes very slow". firebug shows the following line after error: }},__bb:function(){funct

Re: [qooxdoo-devel] data binding question

2010-03-08 Thread MartinWittemann
Hey, thats exactly what I wanted to show you. :) But feed free to ask more questions if you have trouble using it. Best, Martin -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4695311.html Sent from the qooxdoo mailing list archive at Nabble.com. --

Re: [qooxdoo-devel] data binding question

2010-03-08 Thread hkalyoncu
hello i found the answer here: http://demo.qooxdoo.org/current/demobrowser/#data~Finder.html sorry for the message pollution -- View this message in context: http://n2.nabble.com/data-binding-question-tp4694961p4695279.html Sent from the qooxdoo mailing list archive at Nabble.com. ---

[qooxdoo-devel] data binding question

2010-03-08 Thread hkalyoncu
hi again i implemented two list boxes. one is for main category names and the other one is for sub categories. cutting the crap; what i want to do is when there is a selection in first list box the content of the second list box must be updated automatically. actually i did this with remote requ