Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Custom widget
Custom widget [message #106337] Thu, 25 September 2008 12:23 Go to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Hi,

I am trying to insert the qooxdoo DateChooser widget into a RAP
application.
I registered the
qooxdoo-0.8-sdk/framework/source/class/qx/ui/control/DateCho oser.js from
the qooxdoo sdk as an API-Resource. When trying to instantiate a
qx.ui.control.DateChooser object the Browser tells me this:

Could not evaluate javascript response:

TypeError: qx.ui.control is undefined

So I think I got the part with registering the APIResource wrong.
What do I have to do to make it work?
Re: Custom widget [message #106351 is a reply to message #106337] Thu, 25 September 2008 12:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi,

the DateTime widget is available in RAP 1.1.1. You can have a look at it.

Best,
Ivan

Gunnar Wurl wrote:
> Hi,
>
> I am trying to insert the qooxdoo DateChooser widget into a RAP
> application.
> I registered the
> qooxdoo-0.8-sdk/framework/source/class/qx/ui/control/DateCho oser.js
> from the qooxdoo sdk as an API-Resource. When trying to instantiate a
> qx.ui.control.DateChooser object the Browser tells me this:
>
> Could not evaluate javascript response:
>
> TypeError: qx.ui.control is undefined
>
> So I think I got the part with registering the APIResource wrong.
> What do I have to do to make it work?
>
>
Re: Custom widget [message #106365 is a reply to message #106351] Thu, 25 September 2008 12:39 Go to previous messageGo to next message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Thanks Ivan,

but my problem is more concerning implementing a custom widget, it is not
the DateTime widget in special. I have a general problem in understanding
what to do to implement an existing qooxdoo widget into a RAP application.
The GMaps example works, and I can use the qooxdoo widgets which are in
the RAP built, but no exterior widgets.
Re: Custom widget [message #106378 is a reply to message #106365] Thu, 25 September 2008 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Gunnar,

I suppose that the problem is that the qooxdoo DateChooser relays on
some qooxdoo classes like GridLayout, Date and so on which are striped
from the qx.js used in RAP. You need to register all related classes as
well.

Best,
Ivan

Gunnar Wurl wrote:
> Thanks Ivan,
>
> but my problem is more concerning implementing a custom widget, it is
> not the DateTime widget in special. I have a general problem in
> understanding what to do to implement an existing qooxdoo widget into
> a RAP application. The GMaps example works, and I can use the qooxdoo
> widgets which are in the RAP built, but no exterior widgets.
>
Re: Custom widget [message #106406 is a reply to message #106337] Thu, 25 September 2008 13:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Gunnar,

RAP uses a subset of qx 0.7.3. The error you get is because the 0.8
DateChooser references thing that are not available in 0.7.3.
I doubt that it is possible to get widgets from 0.8 running in 0.7.3.

HTH
Rüdiger
-----------------------------
Rüdiger Herrmann
Innoopract
http://innoopract.com
delivering eclipse technology

Gunnar Wurl wrote:
> Hi,
>
> I am trying to insert the qooxdoo DateChooser widget into a RAP
> application.
> I registered the
> qooxdoo-0.8-sdk/framework/source/class/qx/ui/control/DateCho oser.js from
> the qooxdoo sdk as an API-Resource. When trying to instantiate a
> qx.ui.control.DateChooser object the Browser tells me this:
>
> Could not evaluate javascript response:
>
> TypeError: qx.ui.control is undefined
>
> So I think I got the part with registering the APIResource wrong.
> What do I have to do to make it work?
>
>
Re: Custom widget [message #106433 is a reply to message #106378] Thu, 25 September 2008 13:26 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 237
Registered: July 2009
Senior Member
Hi,

be sure to use 0.7.3 classes. I don't think that qooxdoo 0.8 widgets
will work with RAP as it ships 0.7.3

Greets
Benny

Ivan Furnadjiev wrote:
> Hi Gunnar,
>
> I suppose that the problem is that the qooxdoo DateChooser relays on
> some qooxdoo classes like GridLayout, Date and so on which are striped
> from the qx.js used in RAP. You need to register all related classes as
> well.
>
> Best,
> Ivan
>
> Gunnar Wurl wrote:
>> Thanks Ivan,
>>
>> but my problem is more concerning implementing a custom widget, it is
>> not the DateTime widget in special. I have a general problem in
>> understanding what to do to implement an existing qooxdoo widget into
>> a RAP application. The GMaps example works, and I can use the qooxdoo
>> widgets which are in the RAP built, but no exterior widgets.
>>
Re: Custom widget [message #106475 is a reply to message #106406] Thu, 25 September 2008 14:48 Go to previous message
Gunnar Wurl is currently offline Gunnar WurlFriend
Messages: 34
Registered: July 2009
Member
Thanks for all your advices!

The Problem was that I used the 0.8 version of qooxdoo. I tried it with
the 0.73 version and it works.

Thanks again
Previous Topic:empty Coolbar
Next Topic:How to add Help Content
Goto Forum:
  


Current Time: Sat Apr 27 02:51:14 GMT 2024

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

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

Back to the top