Re: [qooxdoo-devel] Canvas instead of Grid makes problem

2010-09-20 Thread Martin Wittemann
Hey, this error comes from the data binding layer where you try to bind a property which is not available. So check all usage of .bind() and controller to find the error. It just seems like you renamed something which was necessary for the binding. Best, Martin Am 20.09.2010 um 18:52 schrieb

Re: [qooxdoo-devel] SelectBox demo

2010-09-20 Thread Martin Wittemann
Hey, you can use this approach for trees but not for tables. You would need a table controller which is currently not available. But we have a tree controller which works fine. Just take a look at the demobrowser to see it in action. Best, Martin Am 20.09.2010 um 21:49 schrieb nrg-b: > > Is

[qooxdoo-devel] Hidden feature in property _apply method?

2010-09-20 Thread Fritz Zaucker
Hi, looking at the source in framework/source/class/qx/core/Property.js it seems that the apply method for properties is actually called with (at least) 3 arguments, namely value, old, and name (of the property), allowing the following: __apply: function(value, old, name) {

Re: [qooxdoo-devel] Any plans for in-browser UI designer

2010-09-20 Thread Burak Arslan
On 09/20/10 18:10, jacob wrote: > Are there any plans or perhaps work started on drag'n'drop UI designer ala > ones seen in other frameworks? > i'm maintaining a project called jsqt that uses the output from qt's ui designer as source to generate qooxdoo code from. it's available at: github.com

Re: [qooxdoo-devel] Canvas instead of Grid makes problem

2010-09-20 Thread Ulrich Schreiner
Hi Hansjoerg,   i cannot reproduce your problem. can you specify it more exactly?   if i run the code, i get no error.   cu   Qoodary hat am 20. September 2010 um 17:52 geschrieben: > > Hello, > > I tried to modify the MultiPage example from demobrowser. > I want to use a Canvas layout instead

Re: [qooxdoo-devel] SelectBox demo

2010-09-20 Thread nrg-b
Is it possible to use this approach to create models for other widgets especially Table and Tree ? In other words, can the jsonmodel above be used in a Table ?? Cheers! Bharat -- View this message in context: http://qooxdoo.678.n2.nabble.com/SelectBox-demo-tp5519848p5552051.html Sent from the

[qooxdoo-devel] RpcPerl Dispatcher on CPAN

2010-09-20 Thread thron7
Are the RpcPerl gods aware of this?: http://search.cpan.org/~mbp/MojoX-Dispatcher-Qooxdoo-Jsonrpc-0.52/ Tobi, you might know about it?! T. -- Start uncovering the many advantages of virtual appliances and start using the

[qooxdoo-devel] Canvas instead of Grid makes problem

2010-09-20 Thread Qoodary
Hello, I tried to modify the MultiPage example from demobrowser. I want to use a Canvas layout instead of Grid. http://tinyurl.com/29ru6kx If I build the source then I have the error; target["set" + qx.lang.String.firstUp(lastProperty)] is not a function and the color widgets are not correct p

Re: [qooxdoo-devel] qooxdoo is slow

2010-09-20 Thread Tobias Oetiker
Hi Massimo, Today mappopo wrote: > > Dear Martin, > >but currently its not our first priority. > It is is very sad: please try to use Internet Explorer (the most used > browser :-(( ) . > > Qooxdoo is a very powerful framework, it works good with external libraries, > permits the programmer to wr

[qooxdoo-devel] Any plans for in-browser UI designer

2010-09-20 Thread jacob
Are there any plans or perhaps work started on drag'n'drop UI designer ala ones seen in other frameworks? Ragards, Jacob -- View this message in context: http://qooxdoo.678.n2.nabble.com/Any-plans-for-in-browser-UI-designer-tp5550854p5550854.html Sent from the qooxdoo mailing list archive at Na

Re: [qooxdoo-devel] qooxdoo is slow

2010-09-20 Thread Martin Wittemann
Hey, we also know that IE is the slowest browser out there. It also depends on what version of IE you are talking about. The IE9 looks really promising, IE7 and 8 are not the fastest but still good in comparison to IE6 which is slow as hell. And we also know that IE has still a big market share

Re: [qooxdoo-devel] qooxdoo is slow

2010-09-20 Thread mappopo
Dear Martin, >but currently its not our first priority. It is is very sad: please try to use Internet Explorer (the most used browser :-(( ) . Qooxdoo is a very powerful framework, it works good with external libraries, permits the programmer to write code in a very clean etc. We do not need

[qooxdoo-devel] Using a global error handler in Qx

2010-09-20 Thread Jean-Noël Rivasseau
Hello, We are at the point where we need to have extensive JS error logging in production for our web-app. I've seen that Qx already tackles this problem with a qx.event.GlobalError class. However I played with it this morning (we're still under 1.0 but could update to 1.2.x if improvements have

[qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-20 Thread jacob
Hi, I have a table with remote model behind it. I was wondering how can I refresh add content to Remote model without refreshing the whole cache. I would like to do it in similar fashion as I can removeRow which removes row from the table and decreases the count. What I'm trying to achieve is t

Re: [qooxdoo-devel] External variable and class instance

2010-09-20 Thread Ratibor Redoran
Static attributes of classes are modifiable. ("static" actually means "class variable"). Yes, but if I need to create object after program starting (in "static" part it is null) that I cannnot use it in the other classes directly. As example: //---

Re: [qooxdoo-devel] Automatic adjust buttons and other elements?

2010-09-20 Thread Martin Wittemann
Hey, instead of using width and height, you could use minWidth and minHeight. This will keep your layout as long as it fits and increases the size if necessary. Otherwise, if its not fitting in, you get the ellipsis... Best, Martin Am 20.09.2010 um 12:20 schrieb Qoodary: > > Hi Martin, > No

Re: [qooxdoo-devel] Automatic adjust buttons and other elements?

2010-09-20 Thread Qoodary
Hi Martin, Now I see what happens: I added a "widht" and "heigth" property to each button for layout reasons. Each button should have same size. var Deadline = new qx.ui.form.Button("Deadline", "icon/32/apps/office-calendar.png").set({

Re: [qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread benco
Many thanks for the link! In between times, I also found a solution - a bit like the example you suggested finally: var fun = new Function("args","return new "+className+"("+function() { var fp=true; var toret=''; for (var i=0,lim=myArr.length; ihttp://qooxdoo.678.n2.nabble.com

[qooxdoo-devel] upvote this!

2010-09-20 Thread Burak Arslan
hi there, i just submitted the qooxdoo blog post about touch events to hacker news. upvote it ! :)) http://news.ycombinator.com/item?id=1708308 best, burak -- Start uncovering the many advantages of virtual appliance

Re: [qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread Martin Wittemann
Btw. here is a good example: http://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible you don't need to use a qooxdoo class to do that, just use a function wrapper which should be fine too. Best, Martin Am 20.09.2010 um 11:18 schrieb benco: > > Hi Martin, >

Re: [qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread Martin Wittemann
Hey, sounds like a but of too much code for such a simple thing as it should be. Additionally subclassing every class could be a bad idea for the performance. I am not really sure about that but i have a bad feeling about such things. Best, Martin P.S. you need to use apply or call for the bas

Re: [qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread benco
Hi Martin, Thanks for your reply! In fact, I also thought about another alternative solution by creating a temporary subclass... But I don't know if it's feasible - it seems to throw errors actually - and what about the performance... if (!qx.Class.isDefined("{globalnamespace}.temp_"+config.wid

Re: [qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread Martin Wittemann
Hey, this sounds in deed like something not easy to do. I can only imagine a dirty solution where your code just takes a couple of arguments and passing them in. But if your class has more arguments than you specified, the code will sure not work. var obj = new classFn(obj,myArr[0], obj,myArr[

Re: [qooxdoo-devel] Automatic adjust buttons and other elements?

2010-09-20 Thread Martin Wittemann
Hello, well, you can not increase the size of elements fit into a layout. At least this is not the way it should work at all. Try to add qx.ui.core.queue.Manager.flush(); at the end of your function and see if its working. A short try with a button in the playground showed me no problems. In

Re: [qooxdoo-devel] SelectBox demo

2010-09-20 Thread Martin Wittemann
Hey, > PS: maybe a "+" instead of a "," in the debug call. ?? Yes, a plus would be better. :) I changed it back from console.log where i use , to see all the objects and debug them. Regards, Martin -- Start uncovering

Re: [qooxdoo-devel] Password field issue

2010-09-20 Thread Martin Wittemann
hey, I guess it does not depend on the version of qooxdoo. It either depends on the browser implementation. We are just changing an attribute of the input field with that option so maybe it will not work in all browsers. This may in deed be a security problem. So you need to give it a try and c

Re: [qooxdoo-devel] SelectBox demo

2010-09-20 Thread nrg-b
var jsonmodel = qx.data.marshal.Json.createModel(myJSONObject); Thank you - this is *exactly* what I wanted I am using RpcServlet to retrieve json objects of many structural types. This will save a lot of time/effort to show them in various widgets. Cheers! Bharat PS: maybe a "+" instead

Re: [qooxdoo-devel] Password field issue

2010-09-20 Thread marginal
Thanx alot! That's exactly what I need. Is this code will be compatible with future versions? I'm using 1.2 but it's not working with IE9 for now and I'm planing to move to 1.3. -- View this message in context: http://qooxdoo.678.n2.nabble.com/Password-field-issue-tp5548399p5549426.html Sent fro

[qooxdoo-devel] [pure js] how to create a new object by passing args as array ?

2010-09-20 Thread benco
Hi, I'm currently working on a widget factory that use definition maps as config. As these config maps must be created before my app launches and qx initializes, I use strings and array following this example: {class:"some qx className", args:[ contructor args]} The problem is I don't know ho

Re: [qooxdoo-devel] Automatic adjust buttons and other elements?

2010-09-20 Thread Qoodary
Hello Martin, thanks a lot for your help. Ok I understand. Is it an option to increase / decrease the size of all elements like buttons which contains text? For example to add this in the function "bigfont" bigfont : function() { var doc = this.getRoot(); var manager =

Re: [qooxdoo-devel] qooxdoo property system and debugging

2010-09-20 Thread Martin Wittemann
Hello Christian, I would just break on that error (using chrome or safari which works good for me) and check the classname of the object not having that property. I guess it comes from a loaded model object so the class name could tell you some more details about whats actually in the class its

Re: [qooxdoo-devel] Canvas for WebGL?

2010-09-20 Thread Martin Wittemann
See my answer on this thread: http://qooxdoo.678.n2.nabble.com/getting-webgl-context-from-canvas-td5545729.html#a5549353 Am 17.09.2010 um 20:14 schrieb zagibu: > > I was unsuccessfully trying to get the WebGL context from qooxdoo canvas > objects (both qx.html.Canvas and qx.ui.embed.Canvas). Do

Re: [qooxdoo-devel] getting webgl context from canvas

2010-09-20 Thread Martin Wittemann
Hey Luca, you can always access the native DOM element of a qooxdoo widget. Take a look at the example: var c = new qx.ui.embed.Canvas(); ​this.getRoot().add(c); qx.ui.core.queue.Manager.flush(); var canvasElement = c.getContentElement().getDomElement(); The flush is used to bring render the ca

Re: [qooxdoo-devel] Password field issue

2010-09-20 Thread Martin Wittemann
Hey, this is not supported by default. The password field ueses a different input type as the textfield. But you can manipulate the dom element by using the qooxdoo html wrapper: passwordField.getContentElement().setAttribute("type", "text"); With that, you change the password field into a tex

Re: [qooxdoo-devel] Automatic adjust buttons and other elements?

2010-09-20 Thread Martin Wittemann
Hello Hansjoerg, yes, this is a normal behavior. As we don't listen to the change of the font size, the size of the label stays the same which causes the ellipsis to appear because there isn't enough room for the text anymore. I could guess that manual flush after setting the new font size coul

[qooxdoo-devel] Canvas for WebGL?

2010-09-20 Thread zagibu
I was unsuccessfully trying to get the WebGL context from qooxdoo canvas objects (both qx.html.Canvas and qx.ui.embed.Canvas). Does anyone know how to do this? In regular JS, you do something like gl = document.getElementsByTagName("canvas")[0].getContext("experimental-webgl"); -- View this mess

[qooxdoo-devel] Password field issue

2010-09-20 Thread marginal
I'd like to create form with password field and make them visible by clicking checkbox. Is there a hidden property or something for qx.ui.form.PasswordField to make entered password visible? ... // password field with special case this.accPassword = new qx.ui.form.PasswordField(); this.ac