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 of list-like custom widgets

2012-07-25 Thread Omri
Thanks! I got so used to using qx.ui.list.List that I didn't think about checking whether qx.ui.form.List supports horizontal orientation. I implemented the delegate and it works great! I will open a bug for the manual request. Best wishes, Omri On Wed, Jul 25, 2012 at 3:21 PM, thron7 wrote: >

Re: [qooxdoo-devel] Data binding of list-like custom widgets

2012-07-25 Thread thron7
You might also want to look at this Demobrowser sample, http://demo.qooxdoo.org/2.0.x/demobrowser/index.html#data~Flickr.html which, btw, shows a horizontal list in action :). T. On 07/25/2012 03:10 PM, thron7 wrote: > On 07/25/2012 02:09 PM, omrihar wrote: >> Hi All, >> >> I'm working on a

Re: [qooxdoo-devel] Data binding of list-like custom widgets

2012-07-25 Thread thron7
On 07/25/2012 02:09 PM, omrihar wrote: > Hi All, > > I'm working on a custom widget which should represent an item in a > qx.data.Array. The items are all supposed to be added to a > qx.ui.container.SlideBar. After having "seen the light" when it comes to > data binding, I don't want to add the it

[qooxdoo-devel] Data binding of list-like custom widgets

2012-07-25 Thread omrihar
Hi All, I'm working on a custom widget which should represent an item in a qx.data.Array. The items are all supposed to be added to a qx.ui.container.SlideBar. After having "seen the light" when it comes to data binding, I don't want to add the items myself but would rather use a list controller t

Re: [qooxdoo-devel] Data Binding Bug

2012-01-18 Thread Daniel Wagner
It's a property: http://demo.qooxdoo.org/current/apiviewer/#qx.ui.form.AbstractField~liveUpdate!property If it's active, a change event will be fired for each input event on the field. Otherwise, you only get a change event when the field loses focus. Regards, Daniel On 01/18/2012 03:31 PM, dc

Re: [qooxdoo-devel] Data Binding Bug

2012-01-18 Thread John Spackman
It's a property in the TextField that makes every key press fire the "changeValue" event, instead of only when you leave the field On 18/01/2012 14:31, "dcipher" wrote: >As I mentioned in the bug report what is "live update" on a textfield? > >Simon > >-- >View this message in context: >http://q

Re: [qooxdoo-devel] Data Binding Bug

2012-01-18 Thread dcipher
As I mentioned in the bug report what is "live update" on a textfield? Simon -- View this message in context: http://qooxdoo.678.n2.nabble.com/Data-Binding-Bug-tp7197419p7200286.html Sent from the qooxdoo mailing list archive at Nabble.com. --

Re: [qooxdoo-devel] data binding

2011-03-12 Thread John de la Garza
> Seems like we didn't change that manual page with the API change some time > ago. Fixed it immediately in trunk (r25564). >> I'm working through: >> http://manual.qooxdoo.org/1.3.x/pages/data_binding/single_value_binding.html > Thanks for pointing that out. :) > Martin > Thanks for fixing it so

Re: [qooxdoo-devel] data binding

2011-03-10 Thread Martin Wittemann
Hey, > It appears as though the documentation may be out of date. Exactly. Seems like we didn't change that manual page with the API change some time ago. Fixed it immediately in trunk (r25564). > I'm working through: > http://manual.qooxdoo.org/1.3.x/pages/data_binding/single_value_binding.html

Re: [qooxdoo-devel] data binding

2011-03-10 Thread Nicholas . Tindall
Hi John, It appears as though the documentation may be out of date. This snippet is probably what is intended: label1.bind("value", label2, "value"); That way when the value property changes on label1 the value property on label2 will be updated also. This would have the same effect

[qooxdoo-devel] data binding

2011-03-10 Thread John de la Garza
I am trying to add this code to a sample hello world app: var label1 = new qx.ui.basic.Label(); var label2 = new qx.ui.basic.Label(); label1.bind("content", label2, "content"); to a sample hello world app to learn about data binding I get this error: uncaught exception: Binding property cont

Re: [qooxdoo-devel] Data binding problem

2011-01-25 Thread Martin Wittemann
Hey, > what about: > > construct : function(orientation) > { >// ... >this.initOrientation(orientation); > } > > It will initialize the orientation to default or to 'orientation'. Exactly, and it will also fire and the change event. But after that, a set of an external source is hand

Re: [qooxdoo-devel] Data binding problem

2011-01-24 Thread Petr Kobalíček
Hi Martin, what about: construct : function(orientation) { // ... this.initOrientation(orientation); } It will initialize the orientation to default or to 'orientation'. Personally I don't understand why qooxdoo property system generates so much normally unused methods like init/r

Re: [qooxdoo-devel] Data binding problem

2011-01-24 Thread Jean-Noël Rivasseau
Thanks for the explanation and the link to the bug. Although I can understand why you dont want to fix this bug, I think it's problematic to keep a buggy behavior in the name of compatibility for too long... I hope you will consider fixing this in a reasonable timeframe :) Cheers Jean-Noel On Mo

Re: [qooxdoo-devel] Data binding problem

2011-01-24 Thread Tom Schindl
Isn't the databinding problem only one of fireing/not fireing the event? So couldn't you simply pass an extra parameter so that the event is not fired? Tom Am 24.01.11 09:06, schrieb Martin Wittemann: > Hey, > I tracked down the problem to a known property system behavior / bug. > The problem is

Re: [qooxdoo-devel] Data binding problem

2011-01-24 Thread Martin Wittemann
Hey, I tracked down the problem to a known property system behavior / bug. The problem is that the change vent is fired even if the init value is the same as the new value. Take a look at the example to see the example: http://tinyurl.com/4tzppgr Do you agree it's problematic (this is not consi

Re: [qooxdoo-devel] Data binding problem

2011-01-21 Thread Jean-Noël Rivasseau
Hmm, I realized this is not directly linked to data binding, although changeBubble is also used for data binding I think. Anyway, the problem is here. On Fri, Jan 21, 2011 at 10:49 AM, Jean-Noël Rivasseau wrote: > Hi Martin, > > I noticed a weird behaviour of the data binding system today ( I thi

[qooxdoo-devel] Data binding problem

2011-01-21 Thread Jean-Noël Rivasseau
Hi Martin, I noticed a weird behaviour of the data binding system today ( I think it's a bug). This is reproduced by the small app in the playground: http://tinyurl.com/4bgrzpb My complaint is that a changeBubble event is trigggered on imageOptions.verticalRasterMode although the value was not c

Re: [qooxdoo-devel] Data binding improvement

2010-11-07 Thread Kenneth Tilton
On 11/5/2010 11:08 AM, Jean-Noël Rivasseau wrote: > Martin: done, http://bugzilla.qooxdoo.org/show_bug.cgi?id=4290 > > Kenneth: I did not really understand your remarks. Can you effectively > access the DAG from the converter function? At this point I think not [Ah, hang on, "DAG" is not what I th

Re: [qooxdoo-devel] Data binding improvement

2010-11-05 Thread Martin Wittemann
Thanks. :) Am 05.11.2010 um 16:08 schrieb Jean-Noël Rivasseau: Martin: done, http://bugzilla.qooxdoo.org/show_bug.cgi?id=4290 Kenneth: I did not really understand your remarks. Can you effectively access the DAG from the converter function? At this point I think not On Fri, Nov 5, 2010 at 10:0

Re: [qooxdoo-devel] Data binding improvement

2010-11-05 Thread Jean-Noël Rivasseau
Martin: done, http://bugzilla.qooxdoo.org/show_bug.cgi?id=4290 Kenneth: I did not really understand your remarks. Can you effectively access the DAG from the converter function? At this point I think not On Fri, Nov 5, 2010 at 10:07 AM, Kenneth Tilton wrote: > > > Am 04.11.2010 um 16:10 schrieb

Re: [qooxdoo-devel] Data binding improvement

2010-11-05 Thread Kenneth Tilton
> Am 04.11.2010 um 16:10 schrieb Jean-Noël Rivasseau: > >> I wrote the code that used this quite a bit ago so I dont remember >> all the details but basically the use case is as such: >> >> I have an object A and an object B. One of A property is bound to B, >> but needs to be converted. The con

Re: [qooxdoo-devel] Data binding improvement

2010-11-05 Thread Martin Wittemann
Hey, Hm, sounds like a valid use case. Cant imagine a "real" use case currently but that dosn't care. Open a bug report for it and i'll take care of it. Thanks, Martin Am 04.11.2010 um 16:10 schrieb Jean-Noël Rivasseau: I wrote the code that used this quite a bit ago so I dont remember all the

Re: [qooxdoo-devel] Data binding improvement

2010-11-04 Thread Jean-Noël Rivasseau
I wrote the code that used this quite a bit ago so I dont remember all the details but basically the use case is as such: I have an object A and an object B. One of A property is bound to B, but needs to be converted. The conversion depends on one of the property of the B object. For instance, a b

Re: [qooxdoo-devel] Data binding improvement

2010-11-04 Thread Martin Wittemann
Hey, > This mail is for Martin. Seems to be sure who's the man in charge here. ;) > I would like to suggest a small change in SingleValueBinding.js. In > __convertValue, a second argument is sent to the converter function if the > targetObject has a getModel() function. But I found myself in a

[qooxdoo-devel] Data binding improvement

2010-11-04 Thread Jean-Noël Rivasseau
Hi, This mail is for Martin. I would like to suggest a small change in SingleValueBinding.js. In __convertValue, a second argument is sent to the converter function if the targetObject has a getModel() function. But I found myself in a situation where I needed to have the targetObject itself sent

Re: [qooxdoo-devel] Data binding to data events

2010-09-14 Thread Mikhail Novikov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! I rewrote my code a bit and problem disappeared. I am still quite confused by this, but I can no longer reproduce it. Thanks for the help anyway. Best regards, Mikhail -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment:

Re: [qooxdoo-devel] Data binding to data events

2010-09-13 Thread thron7
On 09/13/2010 10:35 AM, Mikhail Novikov wrote: > -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > > Hello! > > This is weird, I have very similar code. Unfortunately I can't really > show all the stuff, as there are quite many related things, so I'll > try to compact it a bit. > > https://gist.

Re: [qooxdoo-devel] Data binding to data events

2010-09-13 Thread Mikhail Novikov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! This is weird, I have very similar code. Unfortunately I can't really show all the stuff, as there are quite many related things, so I'll try to compact it a bit. https://gist.github.com/6b1ac78a8e1849049678 It `kinda` works. First field (f

Re: [qooxdoo-devel] Data binding to data events

2010-09-13 Thread Martin Wittemann
Hey, a quick test in the playground is woorking for me: http://tinyurl.com/32bjbam Could you maybe supply your sample which is not working? Best, Martin Am 12.09.2010 um 20:18 schrieb Mikhail Novikov: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello! > > I seem to get a strange e

[qooxdoo-devel] Data binding to data events

2010-09-12 Thread Mikhail Novikov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello! I seem to get a strange error when I bind something to a "changeValue" (or "input") event of a TextField. It gives me "undefined is not a function" error and it happens in the line 496 of SingleValueBinding.js. The line is var value = source

Re: [qooxdoo-devel] data binding - integer vs string binding for TextFields

2010-07-02 Thread sub
Thanks very much Martin - I should have found that one myself!! Much appreciated. Cheers -- View this message in context: http://qooxdoo.678.n2.nabble.com/data-binding-integer-vs-string-binding-for-TextFields-tp5247054p5247684.html Sent from the qooxdoo mailing list archive at Nabble.com. -

Re: [qooxdoo-devel] data binding - integer vs string binding for TextFields

2010-07-02 Thread MartinWittemann
Hey sub, Thats more a problem of the textfield than of the binding itself. Textfields in qooxdoo take strings and no numbers in general. Usually the data binding can take care of some kind of conversion automatically if the target supplies the type information. In that case, value (which is the ta

[qooxdoo-devel] data binding - integer vs string binding for TextFields

2010-07-02 Thread sub
Hi, I've found that binding a model, that has integer values rather than strings, to a form fails when binding to a TextField. The values are Marshalled to integers via the json store. Rather than changing the server side json, I'm looking for any advice to see how I could get the binding to work

Re: [qooxdoo-devel] Data binding and model to fire events on change

2010-06-19 Thread panyasan
There is even a cometd contribution: http://qooxdoo.org/contrib/project/cometd However, I think cometd will be made redundant by the new HTML5 server side event "eventSource" technology: http://dev.w3.org/html5/eventsource/ http://dsheiko.com/weblog/html5-and-server-sent-events/ There is suppo

Re: [qooxdoo-devel] Data binding and model to fire events on change

2010-06-15 Thread Guilherme Aiolfi
Since the server has no way (well, there is one way, see [1]) to tell the client the data has changed you won't be able to update that list without creating a new request to the server. If your are using the Json Store, you just need to call: myStore.reload(). [1] Alternatively you can use comet,

[qooxdoo-devel] Data binding and model to fire events on change

2010-06-15 Thread Simone Pandolfo
hi, I am trying to configure a data binding that allows me to view live data. Reading the documentation I understood that this is done by the "model" but I haven't found examples about. My application use JSON-RPC for the requests to the backend, but the backend works with events and I wish I cou

Re: [qooxdoo-devel] Data binding + json store

2010-06-14 Thread spandolfo
An update, I have tried to open the application with firefox instead of chrome and it work! Why i have trouble with chrome? the online demo work propely but not locally. Regards Sp -- View this message in context: http://qooxdoo.678.n2.nabble.com/Data-binding-json-store-tp5178129p5178160.html

[qooxdoo-devel] Data binding + json store

2010-06-14 Thread spandolfo
Hi, I'm new in qooxdoo and i have some trouble to understand how work the json store. i try to start from: http://demo.qooxdoo.org/current/demobrowser/#data~JsonToList.html But i can't get it working on my local application, no error but the list aren't pupulated. There are any simple json st

Re: [qooxdoo-devel] Data binding + json store

2010-06-14 Thread MartinWittemann
Hello Sp and welcome to qooxdoo, Chrome has some restrictions loading files on local devices. Thats why some of the apps don't work locally with chrome [1] [2]. So either you use chrome and a local server or you use another browser. I'm sorry but we can't do much about it currently. :( Regards, Ma

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

Re: [qooxdoo-devel] Data binding questions

2009-12-22 Thread Jean-Noël Rivasseau
I finally tried that and it works perfectly. Thanks again Martin! On Tue, Nov 10, 2009 at 11:56 PM, MartinWittemann wrote: > > Hello Jean-Noël, > > sorry for the late answer. Part of the qooxdoo team including me has been > on > the JSConf in Berlin over the weekend so we had our weekend on mond

Re: [qooxdoo-devel] Data Binding Cheat Sheet

2009-11-24 Thread Guilherme Aiolfi
It's ready to print now, thanks ;) On Tue, Nov 24, 2009 at 6:49 AM, MartinWittemann wrote: > > Hi, > I was not sure about the "facts" on the cheat sheet as well. I considered > to > remove them in favor to some API but decided to keep them and wait for > feedback. > Now that i got the feedback, I

Re: [qooxdoo-devel] Data Binding Cheat Sheet

2009-11-24 Thread MartinWittemann
Hi, I was not sure about the "facts" on the cheat sheet as well. I considered to remove them in favor to some API but decided to keep them and wait for feedback. Now that i got the feedback, I changed some details on the sheet and here are the results. http://n2.nabble.com/file/n4056541/DataBindin

Re: [qooxdoo-devel] Data Binding Cheat Sheet

2009-11-23 Thread Guilherme Aiolfi
Hi Martin, I think that the titles could be a little bigger than the subtitles (Facts, Methods). And the way it is I'm still have to go look at the apiviewer to see what are the parameters for Tree, Object, List controllers constructors and methods. I would suggest removing the theorical part of

Re: [qooxdoo-devel] Data Binding Cheat Sheet

2009-11-23 Thread Stefan Volbers
Wt! Great stuff, thank you! I promise to give feedback as soon as I find s/th noticeable; a cheat sheet for complex matters like data binding is *BIG* help! Greetings, Stefan MartinWittemann wrote: > Hi Data Binding users, > I created a CheatSheet for the qooxdoo Data Binding. Maybe you can

[qooxdoo-devel] Data Binding Cheat Sheet

2009-11-23 Thread MartinWittemann
Hi Data Binding users, I created a CheatSheet for the qooxdoo Data Binding. Maybe you can take a look at it and give us feedback if you miss something so we could improve it. It's always hard to create a CheatSheet as a designer of the feature so we welcome all of your feedback. http://qooxdoo.org

Re: [qooxdoo-devel] Data binding questions

2009-11-10 Thread MartinWittemann
Hello Jean-Noël, sorry for the late answer. Part of the qooxdoo team including me has been on the JSConf in Berlin over the weekend so we had our weekend on monday and thursday. Thats why i havent answered jet. The controller does not have any method for modifying bindings because the idea of us

Re: [qooxdoo-devel] Data binding questions

2009-11-10 Thread Jean-Noël Rivasseau
Hi Martin Could you please answer this if possible? I really need the answer... On Fri, Nov 6, 2009 at 4:08 PM, Jean-Noël Rivasseau wrote: > Hi, > > My code looks stupid of course, it was just an example. What I actually > want is to remove all the bindings for a given object (the actual reason

[qooxdoo-devel] Data binding questions

2009-11-05 Thread Jean-Noël Rivasseau
Hi, I have two questions, mainly about the list controller. 1) First, does the removeAllBindings() work for data arrays that are bound to a UI element such as a selectbox? The following code for example throws an error: var listController = new qx.data.controller.List(this.getFonts(

Re: [qooxdoo-devel] Data binding a number property

2009-08-31 Thread MartinWittemann
Hello rob, thats an interessting approach you are taking the data binding for. I hadn't that in mind during designing the binding features but event better that it can be used fur such things too. You problem seems to be a easy one. As you said right, you are binding a int value to a textfield. A

[qooxdoo-devel] Data binding a number property

2009-08-29 Thread Elsner, Robert
Using qooxdoo 0.8.2 I'm trying to bind a property of a class to a text field. properties : { bitRate: {init: 0, check: "Number"} }, ... var bitrateField = new qx.ui.form.TextField(this.getBitRate().toString()); var validationDecorator = new qx.

Re: [qooxdoo-devel] Data binding: get source bound to given target

2009-07-25 Thread Florian Giesen
Hello Martin, thanks, that is excactly what i was looking for! Regards, Florian 2009/7/25 Martin Wittemann > Hello Florian, > > the controller needs for internal purposes a reference from every tree > folder to the corresponding model item too. So there is a more or less > internal API for acce

Re: [qooxdoo-devel] Data binding: get source bound to given target

2009-07-24 Thread Martin Wittemann
Hello Florian, the controller needs for internal purposes a reference from every tree folder to the corresponding model item too. So there is a more or less internal API for accessing there reference: treeItem.getUserData("model") But as I said, its more or less internal. Its not documented in

[qooxdoo-devel] Data binding: get source bound to given target

2009-07-24 Thread Florian Giesen
Hello list, i am using data binding with qx.data.controller.Tree together with drag and drop. The drop events give me the qx.ui.tree.Tree{File,Folder} targets (or one of its children). In order to manipulate the model i need to know the corresponding qx.data.model object which is the source bound

Re: [qooxdoo-devel] Data Binding to SelectBox and List

2009-07-24 Thread dmbaggett
Yes, I will contribute the code. It's really not quite "ready for prime time" as I think there will still be some design changes, but it is already quite powerful. For example, you pass your form description to the compiler, and the compiler then generates a set of functions (thunks) which, when e

Re: [qooxdoo-devel] Data Binding to SelectBox and List

2009-07-24 Thread Martin Wittemann
Hi dave, thats interesting! We have planed such a feature too for the framework. (http://bugzilla.qooxdoo.org/show_bug.cgi?id=2295) Do you plan to share your code? Perhaps we can benefit from your ideas / implementation? I have today added a qooxdoo form which can render a given set of form

Re: [qooxdoo-devel] Data Binding to SelectBox and List

2009-07-24 Thread dmbaggett
Yes, that makes perfect sense -- thanks! FYI, I am building a form compiler that parses a hierarchical form description and generates code to instantiate all the widgets, create a model, and bind all the widgets to the model. The goal is to make most such binding issues transparent to the user of

Re: [qooxdoo-devel] Data Binding to SelectBox and List

2009-07-24 Thread Martin Wittemann
Hello Dave, thank you ver much for the compliments. :) Thats something we are aware of. You can bind the selection instead. See the code here as an example: // create the select box selectBox = new qx.ui.form.SelectBox(); selectBox.add(new qx.ui.form.ListItem("a")); selectBox.add(new qx.ui.for

[qooxdoo-devel] Data Binding to SelectBox and List

2009-07-24 Thread dmbaggett
I've been doing a lot with Martin's data binding framework in 0.8.3-pre. Truly amazing stuff! Very, very nice work, Martin. One thing I've noticed, however, is that as of 0.8.3-pre, the "value" property of SelectBox and List are deprecated. Looking at the code, I can see why this is -- the goal t

Re: [qooxdoo-devel] Data Binding and Map Vars

2009-07-07 Thread Guilherme Aiolfi
Hi again, On Tue, Jul 7, 2009 at 4:00 AM, Martin Wittemann wrote: > Hello Guilherme, > im not surprised that this does not work. The data binding is currently > restricted to properties. We decided that because they can offer the change > notifications we need for the source values of the binding

Re: [qooxdoo-devel] Data Binding and Map Vars

2009-07-07 Thread Martin Wittemann
Hello Guilherme, im not surprised that this does not work. The data binding is currently restricted to properties. We decided that because they can offer the change notifications we need for the source values of the binding. So plain javascript maps would not work as sources for the bindi

[qooxdoo-devel] Data Binding and Map Vars

2009-07-06 Thread Guilherme Aiolfi
Hi Martin and others, I was trying to use data bindings with hash maps, the native ones. Here something I tried: --code-- var textfield = new qx.ui.form.TextField(); var obj = {}; textfield.setLiveUpdate(true); var doc = this.getRoot(); doc.add(textfield,{ left : 100, top :

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Jean-Noël Rivasseau
Sorry, I did not spot the post about the roadmap, ignore the last question. I hope the animation framework for Widgets will be in final 1.0 (0.9 would be even better) On Wed, Jun 17, 2009 at 5:51 PM, Jean-Noël Rivasseau wrote: > Hi. Actually I had another bug deep hidden that caused troubles. I

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Jean-Noël Rivasseau
Hi. Actually I had another bug deep hidden that caused troubles. I managed to fix this, but then ran against the bug you gave me the fix for, so this was still very useful :) I am good to go now. What about the roadmap I asked ? ;) Thanks Jean-Noel On Wed, Jun 17, 2009 at 5:03 PM, Jean-Noël Riv

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Jean-Noël Rivasseau
I did method 1 but I still have the bug. I think it's due to something else that what you originally thought. Let me see if I can gather more information. On Wed, Jun 17, 2009 at 2:46 PM, Martin Wittemann wrote: > Hello Jean-Noel, > I gave my example code a try in a 0.8.2 environment and as you

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Andreas Ecker
Howdy! > 1. You path the qooxdoo class qx.ui.form.AbstractField by adding this > to the members section: > > > /** > * Resets the value to the default > */ > resetValue : function() { > this.setValue(""); > }, > > > 2. You use an evil JavaScript trick to patch the

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Martin Wittemann
Hello Jean-Noel, I gave my example code a try in a 0.8.2 environment and as you said it didn't work. As a workaround i thought of patching the textfield to handle null values. That way you could leave the binding without a converter and the problem is solved. There are two ways you could

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Andreas Ecker
Hi Jean-Noël! > Btw, it would be *very* nice if there was a roadmap posted somewhere > regarding new releases shipping dates and their features. Currently I > have no idea when 0.8.3 will be out and what will be in it. Apparently you don't know about the roadmap document yet at: http://qooxdoo.or

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Jean-Noël Rivasseau
Hi Martin, I am still not 100% sure it's a complete duplicate. Your bug reproduces OK but that does not necessarily mean your fix will take care of my original bug. I am waiting for your workaround to test jean-Noel On Wed, Jun 17, 2009 at 11:50 AM, Martin Wittemann < [email protected]> w

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Martin Wittemann
Hi, thats good to hear. So i close the bug as a dulicate and take a look at a workaround after im done with my current task and come back to you later. I hope i could find a solution for you. Best, Martin Am 17.06.2009 um 11:20 schrieb Jean-Noël Rivasseau: Hi, I reproduced the test you g

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Jean-Noël Rivasseau
Hi, I reproduced the test you gave me in the bug and yes, it fails. I am on 0.8.2 and would prefer not to update to trunk... is there some workaround I can apply until I upgrade to 0.8.3 ? Btw, it would be *very* nice if there was a roadmap posted somewhere regarding new releases shipping dates a

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-17 Thread Martin Wittemann
Hi, It really looks like the bug I fixed yesterday. Jean-Noel, could you please check the code snipped in the bug report to verify that the code is reproducing your bug? Best, Martin Am 17.06.2009 um 05:26 schrieb Vincent Vandenschrick: > Hi Jean-Noel, > It seems to me a duplicate of the b

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-16 Thread Martin Wittemann
Hello Jean-Noel, ill take care of the bug today and let you know as soon as I know a solution. Best, Martin Am 17.06.2009 um 00:19 schrieb Jean-Noël Rivasseau: > Hi all and especially Martin, > > Can anyone suggest a temporary workaround for bug 2478 or quickly > come with a patch for the pro

Re: [qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-16 Thread Vincent Vandenschrick
Hi Jean-Noel, It seems to me a duplicate of the bug #2457 that Martin fixed yesterday in the trunk. http://bugzilla.qooxdoo.org/show_bug.cgi?id=2457 The symptom is that the property resetter method of the target object is called independently of the converter result (in your case the null value

[qooxdoo-devel] Data binding problem: workaround for bug #2478

2009-06-16 Thread Jean-Noël Rivasseau
Hi all and especially Martin, Can anyone suggest a temporary workaround for bug 2478 or quickly come with a patch for the problem? My application deeply suffers of this... Thanks Jean-Noel -- Crystal Reports - New Free

Re: [qooxdoo-devel] Data Binding with a RadioGroup

2009-06-16 Thread Jean-Noël Rivasseau
Hi Martin, Thanks for the reply - I did not look at it in details right now (quite busy) but I will try when i get a chance. I hope you are better :) I have one more quite urgent question right now, will ask that in other mail. On Mon, Jun 15, 2009 at 3:15 PM, Martin Wittemann wrote: > Hello J

Re: [qooxdoo-devel] Data Binding with a RadioGroup

2009-06-15 Thread Martin Wittemann
Hello Jean-Noel, first of all sorry for the late answer. I was due to health problems not at work so i could not reply. I have to admit I thought of something different of your problem. But with your current code sample i saw what you try to achieve. But your current solution does not use t

Re: [qooxdoo-devel] Data Binding with a RadioGroup

2009-05-22 Thread Jean-Noël Rivasseau
Hi Martin, I think you misunderstood my problem, because the code you suggested *does not make sense at all to me* (or maybe I really did not get what you wrote). Why binding a list???! Thanks for letting me know that binding a radio group is not officially supported. However, if you are dealing

Re: [qooxdoo-devel] Data Binding with a RadioGroup

2009-05-18 Thread Martin Wittemann
Hello Jean-Noel, thanks or the flowers for my last suggestion. I'll do my best. :) Looks like you are one step ahead of me with your current problem. I have thought about binding radio buttons and a radio group but havent testet it yet. So officially it is not supported by the current data

  1   2   >