Re: [qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread sNIk
yep, thats kinda strange ... Noggin182 wrote: > > removing the first line from your xml and then using > > alert(qx.xml.Element.getSingleNodeText( doc, > "/MainMenu/MenuItem/MenuName" )) > > works for me. > > I ran this in the playground: > > > var result="";//\n"; > result += "\n"; > res

Re: [qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread Matthew Gregory
removing the first line from your xml and then using alert(qx.xml.Element.getSingleNodeText( doc, "/MainMenu/MenuItem/MenuName" )) works for me. I ran this in the playground: var result="";//\n"; result += "\n"; result += " \n"; result += " Status\n"; result += " 1\n"; result += " \n"; resul

Re: [qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread Dietrich Streifert
Hi sNIk! Please show us the content of the variable 'result'. Otherwise we have no chance to verify the xpath. sNIk schrieb: > hello again. ;) > > i have the following scenario: > > * load an xml-file as string ( rpc ) > * convert string to document > * access elements of that document > > i d

Re: [qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread sNIk
sure ... Status 1 Nötzwörkstatus Hardware Status Noggin182 wrote: > > Hi sNIK, > Been a while since I did any XML. Could you

Re: [qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread Matthew Gregory
Hi sNIK, Been a while since I did any XML. Could you post your XML document please? The think that I suspect is the trailing forward slash but I could be wrong. sNIk wrote: > hello again. ;) > > i have the following scenario: > > * load an xml-file as string ( rpc ) > * convert string to docume

[qooxdoo-devel] some questions regarding xml-processing

2009-05-05 Thread sNIk
hello again. ;) i have the following scenario: * load an xml-file as string ( rpc ) * convert string to document * access elements of that document i did this so far: var doc = qx.xml.Document.fromString( result ); alert( qx.xml.Document.isXmlDocument( doc ) ); // true var xml xml = "XML-Tes

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread Softconcept - Alexander Stiebing
Hi, The error is gone now, thank you. No idea how I/we managed to get that in there. Alex -Ursprüngliche Nachricht- Von: thron7 [mailto:thomas.herchenroe...@1und1.de] Gesendet: Dienstag, 5. Mai 2009 17:23 An: qooxdoo Development Betreff: Re: [qooxdoo-devel] "TypeError: coercing to Uni

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread thron7
Softconcept - Alexander Stiebing wrote: > Hi, > > There are no occurences of QXICONTHEME in my app folders, a grep of > tool/data/config gives only the following: > -- > C:\DEV\eclipseprojekte\qooxdoo-sdk\tool\data\config>grep -Hin QXICONTHEME > *.* > base.json:11:"QXICONTHEME" : ["${QXICONT

Re: [qooxdoo-devel] qx.ui.table.cellrenderer.Boolean() in a qx.ui.table.model.Remote

2009-05-05 Thread thron7
> That means: There is no "qx.ui.table.cellrenderer.Boolean()" shown in > Column2. > Any errors in the Firebug console? Classes missing? - Can you do the usual checks to narrow in on the issue?! T. -- The NEW KODA

Re: [qooxdoo-devel] Bidirectional binding with array element

2009-05-05 Thread Dacquay, Eric
Hi Martin, Here is the code which is causing the problem: this.__objectController.addTarget(this.__fieldInstances["category"], "value", "category[" + (this.getPosition()-1) + "]", true); If I have the same line but I don't try to do a bidirectional mapping: this.__objectController.addTarget(thi

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread Softconcept - Alexander Stiebing
Hi, There are no occurences of QXICONTHEME in my app folders, a grep of tool/data/config gives only the following: -- C:\DEV\eclipseprojekte\qooxdoo-sdk\tool\data\config>grep -Hin QXICONTHEME *.* base.json:11:"QXICONTHEME" : ["${QXICONTHEME}"], base.json:83:"qx.icontheme" : "${QXICONT

Re: [qooxdoo-devel] qx.ui.table.cellrenderer.Boolean() in a qx.ui.table.model.Remote

2009-05-05 Thread Thomas Bückemeyer
thron7 schrieb: > >> Ok, that was wrong in the example. With the correct index 2 it still >> doesnt' work. >> > > So what does it mean "it doesn't work"? > > T. > > > -- > Register Now & Save for Velocity, the Web

[qooxdoo-devel] Overriding member function via Mixin

2009-05-05 Thread Matthew Gregory
Hi, Currently this.base doesn't work from within a mixin. This looks like it is by design. From qx.class.__addMixin: if (entry.$$members) { this.__addMembers(clazz, entry.$$members, patch, patch, patch); The last parameter allows qx.Class to attach "base" to the function, but it is always fa

Re: [qooxdoo-devel] problems with rpc-abstraction ( using this in callback function )

2009-05-05 Thread sNIk
this solution is very easy but has disadvantages. while trying the listener-method i tried also your method ( and it works, no doubt ). but i would like to solve this problem "cleanly", like "var result = rpc.getResult()" ... the disadvantage is that you must process data inside that callbackfunc

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread thron7
> As I am quite new to Qooxdoo (0.8.2 on Windows) I can't find any suitable > "qx.icontheme key", where do I find it? I 'grep'ped all files there does not > seem to be a line where a value is set for it, and when I try to alert it in > Application.js I get an "undefined". > No worries - see fu

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread thron7
Ah, better still, also check application.json and base.json in the qooxdoo SDK tool/data/config folder, for weird occurrences of the QXICONTHEME macro. T. Softconcept - Alexander Stiebing wrote: > Hi, > > As I am quite new to Qooxdoo (0.8.2 on Windows) I can't find any suitable > "qx.icontheme

Re: [qooxdoo-devel] problems with rpc-abstraction ( using this in callback function )

2009-05-05 Thread Matthew Gregory
this.__rpc.addListener( "completed", function(e) { this.__result = e.getData(); }, this ); alert( this.__result ); Here, you pass the callback function to addListener which then returns immediately. Your alert is called before the result is ready. It is a bit strange to get use to at first

Re: [qooxdoo-devel] "TypeError: coercing to Unicode: need string or buffer, list found" on compile

2009-05-05 Thread Softconcept - Alexander Stiebing
Hi, As I am quite new to Qooxdoo (0.8.2 on Windows) I can't find any suitable "qx.icontheme key", where do I find it? I 'grep'ped all files there does not seem to be a line where a value is set for it, and when I try to alert it in Application.js I get an "undefined". application.json out of the

Re: [qooxdoo-devel] problems with rpc-abstraction ( using this in callback function )

2009-05-05 Thread sNIk
hello! i would prefer the first option. ;) i changed my code to this: callAsync: function( method, args ) { var handler = function( result, exc, id ) { if ( exc == null ) { //alert( result );

Re: [qooxdoo-devel] problems with rpc-abstraction ( using this in callback function )

2009-05-05 Thread Matthew Gregory
Hi Again, The call to the backend is asyncrounous, your qxgui.utils.Rpc.callAsync() function will return immediately. There are two ways forward, you can either change your class so it fires an "complete" event, or change the function so it accepts a callback. From the callAsync() function it

Re: [qooxdoo-devel] Improved qx.event.Command

2009-05-05 Thread Matthew Gregory
Fabian Jakobs wrote: > I like this enhancement. It's very similar to the QAction class in Qt > . Please open an enhancement > bug for this. Since it requires some changes to our widget I don't know > in which time frame we can address this issue. Done

[qooxdoo-devel] problems with rpc-abstraction ( using this in callback function )

2009-05-05 Thread sNIk
hello there. i want to simplify the usage of rpc and ran into a problem with the handler. example: usage: - var rpc = new qxgui.utils.Rpc; rpc.callAsync( "doLogin", [ username, userpw ] ); var result = rpc.getRes

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Lutz Schoder
Yes, that's the plan. I will use an Ant task that creates the #require entries before the generator starts so that's no overhead. Thanks for your assistance. Lutz Jim Hunter schrieb: > Don't put the #require in your base class, put it in your application > class so that it is available to the

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Jim Hunter
Don't put the #require in your base class, put it in your application class so that it is available to the entire application, not just this one class. That shouldn't break any methodology you might have for your classes. Jim On Tue, May 5, 2009 at 2:54 AM, Lutz Schoder wrote: > Hi Chris, > > t

Re: [qooxdoo-devel] Focus a widget without moving it

2009-05-05 Thread Matthew Gregory
Thanks Thomas, This is actually what I have made. I have a "banners" with several buttons on them. There is a button with a down arrow on the far right that does exactly that, opens a menu that shows *all* buttons. I've set focusable to false on all widgets that get added to the banner and this

Re: [qooxdoo-devel] virtual table with rowSpan: Needing getCellWidget()

2009-05-05 Thread Marcel Ruff
Ok, it works fine now. For others, the method name to call is: this.widgetCellSpan.getRenderedCellWidget(row, column); Thanks Marcel > Fabian Jakobs schrieb: > >> Hi Marcel, >> >> I plan to implement it. I hope I can work on it next week. >> >> >> > This sounds great! > > Thanks

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Lutz Schoder
Hi Chris, thanks for your help. With the "#require" the class was found and the detail window was opened. The "#require" is a break in my generic baseclass but the solution works. That's the main. Regards Lutz Christian Schmidt schrieb: > Hi Lutz, > > you have to inform the generator for usin

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Alexander Back
Hi Lutz, On Tuesday 05 May 2009 Lutz Schoder wrote: > First I tested it with a class with already created objects and it > works. But in the application > a table view has to open a detail view which was given by classname. > This detail view > was normally not created before. > This behavior shou

Re: [qooxdoo-devel] Error: Could not select qx.ui.form.ListItem[ja], because it is not a child element!

2009-05-05 Thread Marcel Ruff
Ok, works perfectly now. Thank you! Marcel > Christian Schmidt schrieb: > >> Hi Marcel, >> >> Thank you for the hint! I have opened a bug report for this issue: >> http://bugzilla.qooxdoo.org/show_bug.cgi?id=2332 >> >> > Great! > It kept me busy over many days with fancy try/catch constr

Re: [qooxdoo-devel] Creating a OSX alike scroll bar

2009-05-05 Thread Alexander Back
Hi Rui, On Monday 04 May 2009 Rui Lopes wrote: > That was the only way I found to create a scrollbar alike osx. > > I did my own theme, though, I didn't find a way to make the "slider" > child control the first item. How can I do that using "scrollbar*" > attributes? The scrollbars in qooxdoo are

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Christian Schmidt
Hi Lutz, you have to inform the generator for using the class (it's needed for dependence analysis), you can do this by using: #require(de.domain.LanguageTable) in the generator section from the class that calls this: var clazz = qx.Class.getByName("de.domain.LanguageTable"); var obj = new clazz

[qooxdoo-devel] qxtransformer new features

2009-05-05 Thread Siarhei Barysiuk
Hello, I'm glad to announce a few new features of qxtransformer. 1) We realize that one of the main and vital parts of open source projects is documentation. That's where qooxdoo is one of the best players on the field with powerful API generator and docs tools. We used all this power and impleme

Re: [qooxdoo-devel] new Instance from String

2009-05-05 Thread Lutz Schoder
Hi Bryan, sorry, but it was not the solution for my problem. First I tested it with a class with already created objects and it works. But in the application a table view has to open a detail view which was given by classname. This detail view was normally not created before. This behavior shou

Re: [qooxdoo-devel] Bidirectional binding with array element

2009-05-05 Thread Martin Wittemann
Hello Eric, sounds like a problem in the data binding itself. Could you pleas show us the code you are using. Perhaps i can find the problem in the binding or some workaround for wou with the specific code piece. Best, Martin Am 04.05.2009 um 18:20 schrieb Dacquay, Eric: > Hi, > > So far I