Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Qooxdoo NumberFormat(qx.util.format.NumberFormat)
Qooxdoo NumberFormat [message #556874] Thu, 02 September 2010 22:49 Go to next message
Jesus   Luna Quiroga is currently offline Jesus Luna QuirogaFriend
Messages: 67
Registered: July 2009
Location: Mexico
Member

Hi,
I'm creating a custom widget and I'm trying to use the qx.util.format.NumberFormat class from qooxdoo, but when I try to instantiate it:

var formatter = new qx.util.format.NumberFormat("en");

I get the next error:
'qx.util.format.NumberFormat' is null or not an object

Any help with this.

Re: Qooxdoo NumberFormat [message #556896 is a reply to message #556874] Fri, 03 September 2010 05:38 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jesus,

RAP is using a subset of qooxdoo and qx.util.format.NumberFormat is not
available in RAP. You could try to get the class (with all dependencies)
from the original qooxdoo 0.7.4 legacy branch - qooxdoo SVN (RAP is
based on it) and register it in RAP as resource. Please note that, this
will not guarantee 100% compatibility, as the qooxdoo code in RAP has
been modified to fit RAP needs.

HTH,
Ivan

On 09/03/2010 1:49 AM, Jesus Luna Quiroga wrote:
> Hi,
> I'm creating a custom widget and I'm trying to use the
> qx.util.format.NumberFormat class from qooxdoo, but when I try to
> instantiate it:
>
> var formatter = new qx.util.format.NumberFormat("en");
> I get the next error:
> 'qx.util.format.NumberFormat' is null or not an object
>
> Any help with this.
>
>
Re: Qooxdoo NumberFormat [message #556913 is a reply to message #556896] Fri, 03 September 2010 07:07 Go to previous messageGo to next message
Massimo Zugno is currently offline Massimo ZugnoFriend
Messages: 9
Registered: July 2009
Junior Member
Hi Jesus,

as Ivan pointed out, RAP has removed the "format" qooxdoo classes from its api. I think this is due to the fact that NumberFormat depends on qx.locale.Number. Number is used by NumberFormat to retrieve decimal and grouping separators from the current locale. As a solution you can change the default implementation of NumberFormat by passing the separators and everything should work fine.

HTH,
Massimo.
Re: Qooxdoo NumberFormat [message #557016 is a reply to message #556913] Fri, 03 September 2010 16:07 Go to previous messageGo to next message
Jesus   Luna Quiroga is currently offline Jesus Luna QuirogaFriend
Messages: 67
Registered: July 2009
Location: Mexico
Member

Hi,
Thanks I will include in my project the NumberFormat implementation to see how it works.

And would you mind to tell me where I can find which subset from qooxdoo is RAP using?

And one more question are there any future plans to move to a newer version from qooxdoo?
Re: Qooxdoo NumberFormat [message #557086 is a reply to message #557016] Sat, 04 September 2010 06:30 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Jesus,

if you look at org.eclipse.rap.rwt.q07\js (CVS HEAD), you will find all
qooxdoo classes used by RAP. Unfortunatly, as we have adopted a lot of
code to fit the RAP needs, we have no plans to migrate to new qooxdoo
version in near future.

Best,
Ivan

On 09/03/2010 7:07 PM, Jesus Luna Quiroga wrote:
> Hi, Thanks I will include in my project the NumberFormat
> implementation to see how it works.
>
> And would you mind to tell me where I can find which subset from
> qooxdoo is RAP using?
>
> And one more question are there any future plans to move to a newer
> version from qooxdoo?
Previous Topic:Formtoolkit CSS
Next Topic:Line width
Goto Forum:
  


Current Time: Sat May 11 13:46:24 GMT 2024

Powered by FUDForum. Page generated in 0.02994 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top