Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » DateChooser
DateChooser [message #5354] Mon, 12 March 2007 05:35 Go to next message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Hello, I need a DateChooser (or Calendar) in my app. There is a
DataChooser in qooxdoo Controls, you can see it in:
http://demo.qooxdoo.org/current/sample/html/example/DateChoo ser_1.html

AFAIK RAP Widget controls are based in qooxdoo Controls (see
http://wiki.eclipse.org/index.php/WidgetToolkit), Is there any way to
use "new" qooxdoo controls in RAP ? How ?

Thanks in advance.

Roberto.
Re: DateChooser [message #5685 is a reply to message #5354] Mon, 12 March 2007 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Roberto,

It is possible to integrate existing qooxdoo widgets (and other
JavaScript) into RAP. There is a brief description on how to do that in
principle in our EclipseCon tutorial (p23-p25):

slides: http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468

A few explanations:
You need to implement
- a Java class representing the widget (e.g. Calendar)
- a Java class that maps the widget API to the client side JavaScript
(this is called a LifeCylcleAdapter - LCA), creating the widget and
receiving values from and transmitting values to the client side
- in case you need additional functionality on the client side you also
need to provide a JavaScript file

Maybe you should start by having a look at the GMap component project:
http://eclipsezilla.eclipsecon.org/attachment.cgi?id=515

This integrates an external JS, but gives a simple example of how to
create your custom widget.

Another good example is the Group widget, the GroupLCA and the Group.js
that you find in the RAP org.eclipse.rap.rwt project. If you want to
transmit data from the client-side to the server side (which neither
GMap nor Group do) you need to implement the readData method in the LCA,
see the SpinnerLCA as an example.

It is not easy, but it can be done ;-)

Hope that helps,

Jochen

Roberto wrote:
> Hello, I need a DateChooser (or Calendar) in my app. There is a
> DataChooser in qooxdoo Controls, you can see it in:
> http://demo.qooxdoo.org/current/sample/html/example/DateChoo ser_1.html
>
> AFAIK RAP Widget controls are based in qooxdoo Controls (see
> http://wiki.eclipse.org/index.php/WidgetToolkit), Is there any way to
> use "new" qooxdoo controls in RAP ? How ?
>
> Thanks in advance.
>
> Roberto.
Re: DateChooser [message #5811 is a reply to message #5685] Tue, 13 March 2007 03:24 Go to previous message
Eclipse UserFriend
Originally posted by: roberto.sanchez.autonomind.com

Thank you very much Jochen! Very useful info. :-)

I'm going try it ASAP.

I'll send feedback of my progress to the newsgroup.

Cheers.
Roberto

Jochen Krause wrote:
> Hi Roberto,
>
> It is possible to integrate existing qooxdoo widgets (and other
> JavaScript) into RAP. There is a brief description on how to do that in
> principle in our EclipseCon tutorial (p23-p25):
>
> slides: http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468
>
> A few explanations:
> You need to implement
> - a Java class representing the widget (e.g. Calendar)
> - a Java class that maps the widget API to the client side JavaScript
> (this is called a LifeCylcleAdapter - LCA), creating the widget and
> receiving values from and transmitting values to the client side
> - in case you need additional functionality on the client side you also
> need to provide a JavaScript file
>
> Maybe you should start by having a look at the GMap component project:
> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=515
>
> This integrates an external JS, but gives a simple example of how to
> create your custom widget.
>
> Another good example is the Group widget, the GroupLCA and the Group.js
> that you find in the RAP org.eclipse.rap.rwt project. If you want to
> transmit data from the client-side to the server side (which neither
> GMap nor Group do) you need to implement the readData method in the LCA,
> see the SpinnerLCA as an example.
>
> It is not easy, but it can be done ;-)
>
> Hope that helps,
>
> Jochen
>
> Roberto wrote:
>> Hello, I need a DateChooser (or Calendar) in my app. There is a
>> DataChooser in qooxdoo Controls, you can see it in:
>> http://demo.qooxdoo.org/current/sample/html/example/DateChoo ser_1.html
>>
>> AFAIK RAP Widget controls are based in qooxdoo Controls (see
>> http://wiki.eclipse.org/index.php/WidgetToolkit), Is there any way to
>> use "new" qooxdoo controls in RAP ? How ?
>>
>> Thanks in advance.
>>
>> Roberto.
Previous Topic:RAP Book
Next Topic:RAP in tomcat
Goto Forum:
  


Current Time: Tue Mar 11 07:21:02 EDT 2025

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

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

Back to the top