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

Re: [qooxdoo-devel] qx.data.marshal.Json : parent references (feature request)

2009-07-24 Thread Martin Wittemann
Hello Florian, there is no problem send even more than three mails per day on the list. ;) Thats true, some of the tree manipulations are really expensive. Storing a reference to the parent would sure help but as long as the model comes from some kind of business data from the client, I thi

Re: [qooxdoo-devel] qx.data.Array problem with MEventBubbling and removeAll() [bug, probably]

2009-07-24 Thread Martin Wittemann
Hello Florian, can you perhaps supply some code snippet which makes it possible for me to reproduce the bug? Perhaps you are doing something special I didn't think of while fixing the bug. Anyway, I'll fix it as soon as I have the code snippet and can reproduce the misbehavior. Best, Mart

Re: [qooxdoo-devel] 3 column layout

2009-07-24 Thread GlebM
Yes, unfortunately: - it looks like a split pane inside of a split pane (double borders around a and *) - the resize policy of an inner split pane (0.3, 0.7) is based on the inner split pane size, not on the total size Derrell Lipman wrote: > > On Fri, Jul 24, 2009 at 5:11 PM, GlebM wrote: >

Re: [qooxdoo-devel] 3 column layout

2009-07-24 Thread Derrell Lipman
On Fri, Jul 24, 2009 at 5:11 PM, GlebM wrote: > > Hi, everyone! > > I want to make a layout like this: > |a|*|b| > > I want a and b to occupy 20% of the space, and have a min width. I want * > to > occupy the rest. > Also, I want a and b to be resizable with a mouse. > Then, I want to be able to

[qooxdoo-devel] 3 column layout

2009-07-24 Thread GlebM
Hi, everyone! I want to make a layout like this: |a|*|b| I want a and b to occupy 20% of the space, and have a min width. I want * to occupy the rest. Also, I want a and b to be resizable with a mouse. Then, I want to be able to show/hide a and b. Split Pane, unfortunately, only allows two compo

[qooxdoo-devel] qx.data.marshal.Json : parent references (feature request)

2009-07-24 Thread Florian Giesen
Hello again, i promise, this is my third and last mail to the list for today ;-) When working with qx.data.controller.Tree and qx.data.store.Json i experienced, that some tree manipulations on the model are relative complex, i.e. removing a child from its parents because its not trivial to find t

Re: [qooxdoo-devel] qx.data.Array problem with MEventBubbling and removeAll() [bug, probably]

2009-07-24 Thread Florian Giesen
Hello Martin, i still have trouble with this issue, although bug #2504 is filed as fixed. It comes up when i call qx.data.Array.remove(). When the script reaches line 296 in qx.data.Array.splice() this.fireDataEvent("changeBubble", {value: this}); you still get the error mentioned above in qx.da

[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

Re: [qooxdoo-devel] Progressive Tree on selection and/or deployement + the new binding features

2009-07-24 Thread Martin Wittemann
Hello Benoît, I have to admit that I don't get your use case right. You want to use "model.tree" on the first load as model for the tree controller and on the second load, you want to use "model.tree.kids"? Do you want to set the selection with the second bind? : > this.store.bind('model.tre

[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] Progressive Tree on selection and/or deployement + the new binding features

2009-07-24 Thread Daniel Wagner
Hi Benoît, I'm afraid I can't help you since I don't know too much about data binding. But Martin, our data binding guru, will take a look at your problem sometime this weekend, so please have a little patience. Regards, Daniel benco schrieb: > Hello, > > I'm a bit stuck and I really need so

Re: [qooxdoo-devel] dynamically load a html div in qooxdoo

2009-07-24 Thread Daniel Wagner
Hi skar, qx.ui.embed.Html is the weapon of choice if you want to insert plain HTML into your application. But it won't solve your problem as any Javascript within the HTML won't be evaluated. Generally speaking, it's preferable to keep all the Javascript code within your qooxdoo application. Ma

[qooxdoo-devel] Progressive Tree on selection and/or deployement + the new binding features

2009-07-24 Thread benco
Hello, I'm a bit stuck and I really need some help here. I'm working on a Tree that can be loaded progressively on deploy and selection events. I also would like using the new binding features with that tree (namely the Tree Controller and the Json Store). The problem is I don't know how to ma

[qooxdoo-devel] dynamically load a html div in qooxdoo

2009-07-24 Thread skar
Hi, I want to be able to add a DOM element received from the server when the user clicks on a button. I'm able to get it as the content in an ajax call. But how do I set it to be the content of a window? Also, the div could have both static HTML content or sometimes js scripts with HTML too. Wil

Re: [qooxdoo-devel] Problem with HtmlArea in Stack

2009-07-24 Thread Nick Glencross
Alexander, Thanks for the quick response. I've created ticket 2617 (http://bugzilla.qooxdoo.org/show_bug.cgi?id=2617) Regards, Nick Glencross >> I'm having some trouble with using an HtmlArea in a Stack, and suspect >> that it doesn't initialise properly because it is hidden when it is >> cons

Re: [qooxdoo-devel] Problem with HtmlArea in Stack

2009-07-24 Thread Alexander Back
Hi Nick, thanks for reporting this issue. Could you please file a bug report for this issue? http://bugzilla.qooxdoo.org/enter_bug.cgi?product=contrib&component=HtmlArea Just assign this issue to me directly. I'll take a look. thanks, Alex On Friday 24 July 2009 Nick Glencross wrot

Re: [qooxdoo-devel] calling parent application functions from popup window

2009-07-24 Thread patkar_n001
Hi Gene, We chose this approach as we thought it would modular. We need to revisit that thought. Anyways thanks a lot for your response. Thanks & Regards Narasimha quote author="Gene Amtower"> Hi Narasimha, Upon reading through what you're trying to achieve, I wonder if you're going about it u

[qooxdoo-devel] Problem with HtmlArea in Stack

2009-07-24 Thread Nick Glencross
Hi all, I'm having some trouble with using an HtmlArea in a Stack, and suspect that it doesn't initialise properly because it is hidden when it is constructed. I've attached a small test case which demonstrates the problem: * When the application is first run, you'll get a working Editor (whi