Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Qooxdoo DateFormat
Qooxdoo DateFormat [message #47053] Thu, 13 September 2007 15:31 Go to next message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
Hi,

I'm trying to build a widget and in it I would like to use the Qooxdoo
function qx.util.format.DateFormat. I'm unable to as I discovered that this
is not present in the RAP "qx.js". Why is this missing?

Tiago
Re: Qooxdoo DateFormat [message #47116 is a reply to message #47053] Thu, 13 September 2007 21:43 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi,

we waited for that moment that someone discovered that :p

Unfortunately in our qooxdoo build process (org.eclipse.rap.tools) we
exclude everything from the qooxdoo runtime not needed by RAP to
minimize the size of the qx.js. We think that this is in the interest of
most RAP developers and users as the rap startup process is much faster.

But we were aware of the fact that the community wants to use functions,
widgets, etc of qooxdoo excluded by us. There are now two ways:

a) Copy everything you need from the org.eclipse.rap.tools project (eg
DateFormat and Format) to your own plugin and register them as resources.

b) Get the org.eclipse.rap.tools project, get a copy of qooxdoo (you'll
need the generator.py scripts), remove the according lines from the
build-custom.sh and build your own qooxdoo library (you'll need python
and some other stuff). After that you need to replace the two js files
of RWT by the newly generated files.

We know that both ways are not that cool but there are no other options
at the moment to get the functionality back.

Maybe you have some ideas how to get the most out of qooxdoo without
having unneeded stuff in the qx build. I think generating qx at runtime
is just impossible as we would need to get the build to run on-the-fly
which requires lot of cpu usage and several tools installed on the
server - so no real option for us.

I think Rüdiger can also comment on this with his thoughts as he is
doing the build most of the time :)

Greets
Benny

Tiago wrote:
> Hi,
>
> I'm trying to build a widget and in it I would like to use the Qooxdoo
> function qx.util.format.DateFormat. I'm unable to as I discovered that this
> is not present in the RAP "qx.js". Why is this missing?
>
> Tiago
>
>
Re: Qooxdoo DateFormat [message #47195 is a reply to message #47116] Mon, 17 September 2007 07:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi,

without knowing your actual use-case, a typical RAP application would
not need to format dates on the client-side. Preferably this should be
done server-side and only the properly formatted string is sent to the
client.
If you would like to share your use-case we can maybe find a solution
that works without a client-side DateFormat.

Cheers,
Rüdiger

Benjamin Muskalla wrote:
> Hi,
>
> we waited for that moment that someone discovered that :p
>
> Unfortunately in our qooxdoo build process (org.eclipse.rap.tools) we
> exclude everything from the qooxdoo runtime not needed by RAP to
> minimize the size of the qx.js. We think that this is in the interest of
> most RAP developers and users as the rap startup process is much faster.
>
> But we were aware of the fact that the community wants to use functions,
> widgets, etc of qooxdoo excluded by us. There are now two ways:
>
> a) Copy everything you need from the org.eclipse.rap.tools project (eg
> DateFormat and Format) to your own plugin and register them as resources.
>
> b) Get the org.eclipse.rap.tools project, get a copy of qooxdoo (you'll
> need the generator.py scripts), remove the according lines from the
> build-custom.sh and build your own qooxdoo library (you'll need python
> and some other stuff). After that you need to replace the two js files
> of RWT by the newly generated files.
>
> We know that both ways are not that cool but there are no other options
> at the moment to get the functionality back.
>
> Maybe you have some ideas how to get the most out of qooxdoo without
> having unneeded stuff in the qx build. I think generating qx at runtime
> is just impossible as we would need to get the build to run on-the-fly
> which requires lot of cpu usage and several tools installed on the
> server - so no real option for us.
>
> I think Rüdiger can also comment on this with his thoughts as he is
> doing the build most of the time :)
>
> Greets
> Benny
>
> Tiago wrote:
>> Hi,
>>
>> I'm trying to build a widget and in it I would like to use the Qooxdoo
>> function qx.util.format.DateFormat. I'm unable to as I discovered that
>> this is not present in the RAP "qx.js". Why is this missing?
>>
>> Tiago
>>
Re: Qooxdoo DateFormat [message #47244 is a reply to message #47195] Mon, 17 September 2007 13:54 Go to previous message
Tiago is currently offline TiagoFriend
Messages: 55
Registered: July 2009
Member
Hi

I wanted to have a clock running only on the client side with a specific
date/time format. I followed Benjamin sugestion to include the Qooxdoo
classes in my widget and it worked ok. Thanks for your time anyway.

Tiago


"R
Previous Topic:Creating an empty project, using the article in the current eclipse magazine
Next Topic:Some questions on RAP
Goto Forum:
  


Current Time: Fri Mar 29 02:05:50 GMT 2024

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

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

Back to the top