Hi Marius,

I have done a look at the interface implementation and the 
implementation does only allow constants of the type boolean, string and 
numbers in the statics section.
-> static functions are not allowed here

The manual instead describes that a static method is possible. So it 
seems to me that there is an error in the documentation or in the 
implementation.

Could you please open a bug report and direct assign the bug to me.

Thanks,
Chris

Am 28.07.2010 13:17, schrieb marius123:
> Hi all,
> I have a problem with an interface using a static method. I get the
> following error when I load the app in the browser:
> "Invalid key "createInstanceFromSettings" in interface
> "tt.settings.ISettingsHolder"! Static constants must be all uppercase."
>
> The interface I defined is as follows:
>
> qx.Interface.define("tt.settings.ISettingsHolder", {
>
>       members: {
>               getSettings: function() {}
>       },
>       
>       statics: {
>               createInstanceFromSettings: function(settings) {}
>       }
> });
>
> Looks absolutely correct in my eyes.... The error message doesn't make sense
> since I haven't defined any constants. When I comment out the method
> definition of createInstanceFromSettings the application is working fine.
>
> Any ideas appreciated!
>
> Marius
>


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to