Re: [qooxdoo-devel] Questions about Terminating application.Standalone

2011-07-21 Thread Alexander Steitz
Hi Simon, On Thursday 21 July 2011 21:07:44 Simon White wrote: > 1) If I want a user to terminate an application what method should be > called. I was thinking of using an Exit Button in a window or toolbar > that could be used to terminate the entire application. Is this the > proper way to

Re: [qooxdoo-devel] How to reference Parent window from a child widget?

2011-07-21 Thread Fritz Zaucker
You'll have to walk all the way up until you reach your window if you have nested widgets. Fritz Zaucker Oetiker+Partner AG Aarweg 15 CH-4600 Olten +41 775 9903 On 21.07.2011, at 20:19, Simon White wrote: > Hi > > That is returning a reference to qx.ui.container.Composite but not > qx.ui.win

[qooxdoo-devel] Questions about Terminating application.Standalone

2011-07-21 Thread Simon White
Hi 1) If I want a user to terminate an application what method should be called. I was thinking of using an Exit Button in a window or toolbar that could be used to terminate the entire application. Is this the proper way to shutdown a QooxDoo application. If so do I just call the terminate

Re: [qooxdoo-devel] How to reference Parent window from a child widget?

2011-07-21 Thread Simon White
Hi That is returning a reference to qx.ui.container.Composite but not qx.ui.window.Window. Thanks, Simon On 21/07/2011 1:43 AM, Fritz Zaucker wrote: > getLayoutParent? > > Cheers, > Fritz > > On Wed, 20 Jul 2011, Simon White wrote: > >> Hi >> >> I have been looking in the documentation to find

Re: [qooxdoo-devel] Using the treeController to generate a tree from JSON data

2011-07-21 Thread Martin Wittemann
Hello, I am making my first steps in exploiting qooxdoo's data binding options (so far I'm ashamed to admit I programmed everything by hand). How do you like the concepts in general so far? I have successfully managed to create a tree, a treeController and to use the Json marshal to create a model

[qooxdoo-devel] Using the treeController to generate a tree from JSON data

2011-07-21 Thread omrihar
Hello all, I am making my first steps in exploiting qooxdoo's data binding options (so far I'm ashamed to admit I programmed everything by hand). I have successfully managed to create a tree, a treeController and to use the Json marshal to create a model from results obtained from an RPC call to

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Gian Marco Gherardi
Bug created http://bugzilla.qooxdoo.org/show_bug.cgi?id=5432 Gian Marco Gherardi http://gianmarco.gherardi.me On Thu, Jul 21, 2011 at 3:30 PM, Alexander Steitz wrote: > Hi Gian Marco, > > On Thursday 21 July 2011 15:21:25 Gian Marco Gherardi wrote: >> The biggest problem is in line 267 of qx.

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Alexander Steitz
Hi Gian Marco, On Thursday 21 July 2011 15:21:25 Gian Marco Gherardi wrote: > The biggest problem is in line 267 of qx.io.request.Xhr: > > // POST with request data needs special content-type > if (this.getMethod() === "POST") { >transport.setRequestHeader("Content-Type", > "application/x-www

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Gian Marco Gherardi
The biggest problem is in line 267 of qx.io.request.Xhr: // POST with request data needs special content-type if (this.getMethod() === "POST") { transport.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); } This mean that *every* post request is considered a form post Gi

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Gian Marco Gherardi
Yes, i think there are some missing use-cases for qx.io.request.Xhr. Whith the following code: var req = new qx.io.request.Xhr("/rpc", "POST"); req.setRequestHeaders({ "Content-Type": "application/json" }); req.setRequestData({ "title": "The title" }); req.send(); I expect to generate a request

[qooxdoo-devel] File Uploading

2011-07-21 Thread Benjamin Turner
I am using the most current version of the contribution, to my knowledge, and I've modified the widgets pretty heavily to work in a toolbar, etc. Here's my problem. I want to be able to select multiple files from different directories, then add these file names to a table of sorts and allow peopl

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread thron7
On 07/21/2011 01:58 PM, Ron Whittaker wrote: > Thank you, > your link to the tutorial together with your explanations answer my questions > to a good deal. > > > I have read the manual starting from > http://manual.qooxdoo.org/1.5.x/index.html, but I think your link is not > referenced from th

Re: [qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Alexander Steitz
Hi Ron, On Thursday 21 July 2011 14:10:27 Ron Whittaker wrote: > Actually I have to subclass qx.ui.table.cellrenderer.Abstract and not > qx.ui.table.cellrenderer.Image, don't I? Or is it still possible to > subclass qx.ui.table.cellrenderer.Image so that I can avoid reinventing > the steps to retr

Re: [qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Ron Whittaker
Thank you, Alex This was the information that I needed: >If you only want to change the content of your cell you have to sublcass the >"Abstract" cellrenderer class and override the "_getContentHtml" method. >Within this method you can put together your HTML string which is then display >withi

Re: [qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Alexander Steitz
On Thursday 21 July 2011 13:41:07 you wrote: > This is exactly the question. How do I override the image cell renderer? > Which methods do I override and how do I achieve to put a string label > next to the image? Setting an own cell renderer is quite easy: --snip-- // example how to create a new

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread Ron Whittaker
Thank you, your link to the tutorial together with your explanations answer my questions to a good deal. I have read the manual starting from http://manual.qooxdoo.org/1.5.x/index.html, but I think your link is not referenced from there. This manual section is pretty misleading as I said befor

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread Fritz Zaucker
See Thomas' answer. Cheers, Fritz On Thu, 21 Jul 2011, Ron Whittaker wrote: Thank you, Fritz but what if I add MyCustomClass.js next to Application.js? Is "source" still sufficient? Then what is "source-all" required for? I am looking for more in depth information on these generator jobs.

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread Ron Whittaker
Thank you, Fritz but what if I add MyCustomClass.js next to Application.js? Is "source" still sufficient? Then what is "source-all" required for? I am looking for more in depth information on these generator jobs. Thanks Ron - Original Message - From: Fritz Zaucker To: Ron Whittaker

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread thron7
On 07/21/2011 01:11 PM, Ron Whittaker wrote: > Hello, > I am looking for some hints, when to run generate.py during the development > of an application, > and which arguments to use. During development I usually test the source > version in order to avoid the additional build > step. > > The ex

Re: [qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Ron Whittaker
Thank you, Alex >However, if you want to display more than one image in your cell you have to >write your own cell renderer (which extends the existing image cell renderer). This is exactly the question. *How* do I override the image cell renderer? Which methods do I override and how do I achie

Re: [qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Alexander Steitz
Hi Ron, On Thursday 21 July 2011 12:46:02 Ron Whittaker wrote: > Hello, > I would like to render one column of a table together with an icon > representing the entry's type plus the value's string representation. > Something like the event column in > http://www.trumba.com/help/images/customfieldi

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Alexander Steitz
Hi Gian Marco, On Thursday 21 July 2011 12:06:25 Gian Marco Gherardi wrote: > Yes i've used it, this is what i've tried: > > var req = new qx.io.request.Xhr("/rpc", "POST"); > req.setRequestData({ "title": "The title" }); > req.send(); // send request data as form encoded, with content type > "ap

Re: [qooxdoo-devel] usage of generate.py

2011-07-21 Thread Fritz Zaucker
Probably you'll get a more qualified answer soon. But I never uses source-all. As far as I know generate.py source is all you need if you add a before unreferences class to your application. And look at source-hybrid for much faster loading times! Cheers, Fritz On Thu, 21 Jul 2011, Ron Whittaker

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread Fritz Zaucker
On Thu, 21 Jul 2011, thron7 wrote: > On 07/21/2011 12:12 PM, Fritz Zaucker wrote: >> May be I should setup a cron job to send you some strokes (leo: >> Streicheleinheiten) once a week ... ;-) > > Well, thanks, but no thanks :). I wasn't fishing for compliments. It's > just that we're sometimes put

[qooxdoo-devel] usage of generate.py

2011-07-21 Thread Ron Whittaker
Hello, I am looking for some hints, when to run generate.py during the development of an application, and which arguments to use. During development I usually test the source version in order to avoid the additional build step. The existing help is very brief: "- source -- create source v

Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?

2011-07-21 Thread John Spackman
Hi Simone I've added an "experimental" feature to allow asynchronous method calls; for any server method, if you pass a function as an argument the method will be called asynchronously and the function called when the method completes. The function receives one argument, which is the return value

[qooxdoo-devel] render table cell with icon and text

2011-07-21 Thread Ron Whittaker
Hello, I would like to render one column of a table together with an icon representing the entry's type plus the value's string representation. Something like the event column in http://www.trumba.com/help/images/customfieldicons_tableview.gif. I guess it is simple using cell renderers, but can

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread thron7
On 07/21/2011 12:22 PM, panyasan wrote: > It is "the greatest thing since sliced bread", actually! It has probably > saved thousands of developer hours around the world, leading in an increase > in productivity, GDP, and happiness levels ;-) > > Seriously, it makes working with the source version

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread thron7
On 07/21/2011 12:12 PM, Fritz Zaucker wrote: > May be I should setup a cron job to send you some strokes (leo: > Streicheleinheiten) once a week ... ;-) Well, thanks, but no thanks :). I wasn't fishing for compliments. It's just that we're sometimes putting features out you hardly get any feed

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread panyasan
thron7-2 wrote: > > >> >> Yes, I realize that. What I meant is that most of the time I don't have >> to >> re-build at all as I don't add new framework classes. And the >> source-hybrid >> option improved that A LOT! > > Ah, good to hear someone actually likes it :). > > It is "the greatest

[qooxdoo-devel] What is the recommended way for implementing RPC like comunication in Qx 1.5?

2011-07-21 Thread Gian Marco Gherardi
I know of this alternatives - Use qx.io.remote.Rpc, even if it's based on the old io stack. - Create a custom implementation of qx.io.request.AbstractRequest - Use qx.io.request.Xhr (this seems impossible, see "Using qx.io.request.Xhr for JSON encoded request/response" thread) - Directly use qx.bo

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread Fritz Zaucker
On Thu, 21 Jul 2011, thron7 wrote: > On 07/21/2011 09:54 AM, Fritz Zaucker wrote: >> >> Yes, I realize that. What I meant is that most of the time I don't have to >> re-build at all as I don't add new framework classes. And the source-hybrid >> option improved that A LOT! > > Ah, good to hear some

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Gian Marco Gherardi
Hi, thanks for taking time to respond. > Did you look at the "requestData" property? Yes i've used it, this is what i've tried: var req = new qx.io.request.Xhr("/rpc", "POST"); req.setRequestData({ "title": "The title" }); req.send(); // send request data as form encoded, with content type "appl

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread thron7
On 07/21/2011 09:54 AM, Fritz Zaucker wrote: > > We have a few applications out in the wild by now and it is common to > fix/improve things in various places. So I'll be happy if the apps can > benefit from each other populating the cache. Great. > > Yes, I realize that. What I meant is that mo

Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?

2011-07-21 Thread John Spackman
> >with the external program i have a situation like this: > >runtimeA(); //prepare the widget for the rappresentation of the stdout >runtimeB(); //call the server object and launch the external program > >At the moment the widget for runtimeA appear only after the runtimeB() >is finished, i don't

Re: [qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Alexander Steitz
Hi Gian Marco, On Thursday 21 July 2011 09:04:17 Gian Marco Gherardi wrote: > i'm trying to use qx.io.request.Xhr to call services that accept POST > request with JSON encoded body and respond with JSON encoded data. > It is like a qx.io.remote.Rpc mechanism, but i'm trying to only rely > on the n

Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?

2011-07-21 Thread Simone Pandolfo
One more thing John, About the external program, some time the execution time is long, and the backend reach the timeout, how i can control/configure this? I'm trying to launch the external program through a thread, but I do not know if this can give problems to serverobject I see also that if i

Re: [qooxdoo-devel] How to do button draggable?

2011-07-21 Thread Port
Thank you. -- View this message in context: http://qooxdoo.678.n2.nabble.com/How-to-do-button-draggable-tp6593721p6605796.html Sent from the qooxdoo mailing list archive at Nabble.com. -- 5 Ways to Improve & Secure Unifi

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread Fritz Zaucker
On Thu, 21 Jul 2011, thron7 wrote: > On 07/21/2011 07:52 AM, Fritz Zaucker wrote: >> Ok. It might be worth mentioning somewhere in the docu, as the default OS >> tmp dir might be on a RAM disks that usually is not that huge. > > Good point. Please open a bug for it. Bug 5430 >> I guess this woul

Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?

2011-07-21 Thread Simone Pandolfo
Hi John, I need to understand how the syncronus call work, I have integrated on the serverobject a layer for the db and some call to external program that i need the stdoutput back to qooxdoo. with the external program i have a situation like this: runtimeA(); //prepare the widget for the rappre

Re: [qooxdoo-devel] Size of qooxdoo cache

2011-07-21 Thread thron7
On 07/21/2011 07:52 AM, Fritz Zaucker wrote: > Ok. It might be worth mentioning somewhere in the docu, as the default OS > tmp dir might be on a RAM disks that usually is not that huge. Good point. Please open a bug for it. > Hmm, if it can be smaller, fine. On the other hand, I'd think perform

[qooxdoo-devel] Using qx.io.request.Xhr for JSON encoded request/response

2011-07-21 Thread Gian Marco Gherardi
Hi, i'm trying to use qx.io.request.Xhr to call services that accept POST request with JSON encoded body and respond with JSON encoded data. It is like a qx.io.remote.Rpc mechanism, but i'm trying to only rely on the new qx.io.request framework. Seems that qx.io.request.Xhr can handle JSON respons