Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » any doc or help for creating native custom widget with rap 2.0?
any doc or help for creating native custom widget with rap 2.0? [message #933803] Fri, 05 October 2012 11:04 Go to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
hi all,
the Developer's Guide link is dead, http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/custom-widget.html#native

any samples or doc for creating the native custom widgets without JSWriter with RAP 2.0?
Re: any doc or help for creating native custom widget with rap 2.0? [message #933892 is a reply to message #933803] Fri, 05 October 2012 12:35 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

For RAP 2.0 there are going to be many changes that break existing
native custom widgets. Since we are still in the middle implementing
these changes, there is currently no point in writing a guide for custom
widget development on RAP 2.0. There will definitely be a guide, but i
can't say when, except that it should be before the 2.0 release.

Greetings,
Tim

Am 05.10.2012 13:04, schrieb Song David:
> hi all,
> the Developer's Guide link is dead,
> http://eclipse.org/rap/developers-guide/devguide.php?topic=advanced/custom-widget.html#native
>
>
> any samples or doc for creating the native custom widgets without
> JSWriter with RAP 2.0?

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: any doc or help for creating native custom widget with rap 2.0? [message #938923 is a reply to message #933892] Wed, 10 October 2012 09:21 Go to previous messageGo to next message
David Song is currently offline David SongFriend
Messages: 217
Registered: April 2011
Senior Member
Thanks to Buschtoens.
Hope to have a simple document or tutorial, I intend to develop my new project on RAP 2.0, and now I do not know how to start with custom widget and old custom widget can not work on RAP 2.0 any more.
Re: any doc or help for creating native custom widget with rap 2.0? [message #1008449 is a reply to message #933892] Tue, 12 February 2013 14:31 Go to previous messageGo to next message
Thorsten Lichtenwalter is currently offline Thorsten LichtenwalterFriend
Messages: 12
Registered: February 2013
Junior Member
Is there a developer's guide for migrating (developing) custom widgets to the new RAP 2.0 world yet?

The release notes of RAP 2.0 M1, M2, ... RC2 just mention it (but didn't explain) and in RAP wiki (http://wiki.eclipse.org/RAP/Custom_Widgets) the section regarding RAP 2.x is still empty...



Thorsten Lichtenwalter
Software Development
msgGillardon AG, Bretten, Germany
Re: any doc or help for creating native custom widget with rap 2.0? [message #1008594 is a reply to message #1008449] Wed, 13 February 2013 08:52 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Custom widget development has become a lot easier with the new Remote
API [1]. Unfortunately, we didn't manage to write a guide yet. However,
there are some examples to learn from. I'd recommend to have a look at
the CKEditor widget [2], which uses the new API and is up to date with
2.0. API documentation is also available: [3] for the Java Remote API
and [4] for JavaScript API.

Let us know how if you notice any problems. Your input will help us
creating a custom widget guide.

Regards,
Ralf

[1] http://eclipsesource.com/blogs/?p=14197&preview=true
[2] https://github.com/eclipsesource/rap-ckeditor/
[3]
http://download.eclipse.org/rt/rap/doc/2.0/guide/reference/api/org/eclipse/rap/rwt/remote/RemoteObject.html
[4]
http://download.eclipse.org/rt/rap/doc/2.0/guide/reference/jsdoc/symbols/rap.html

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: any doc or help for creating native custom widget with rap 2.0? [message #1009068 is a reply to message #1008594] Thu, 14 February 2013 11:21 Go to previous messageGo to next message
Thorsten Lichtenwalter is currently offline Thorsten LichtenwalterFriend
Messages: 12
Registered: February 2013
Junior Member
Hi Ralf,

thx for your quick response and the links provided.

I just started migrating a non-GUI widget based on the links you provided. Communication between server and client side is working fine (using pure JSON now). Notifications (triggered on client side) are working as well.

Using the LCA approach for implementing custom widgets isn't recommend by the release notes of RAP 2.0. Nonetheless RAP 2.0 still uses LCAs for its widgets. Why? Is using the LCA approach still a way for migrating my custom widgets? Or shall I eliminate all LCA usage?

How do I migrate custom widgets based on qooxdoo? Where do I have to place my code handling things like "rap.registerTypeHandler('myCustomWidget')" and the like? In the qooxdoo-constructor of my widget?

Any suggestions are welcome Smile


---
Thorsten Lichtenwalter
Software Development
msgGillardon AG, Bretten, Germany



Thorsten Lichtenwalter
Software Development
msgGillardon AG, Bretten, Germany
Re: any doc or help for creating native custom widget with rap 2.0? [message #1009162 is a reply to message #1009068] Thu, 14 February 2013 15:13 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Thorsten,

> I just started migrating a non-GUI widget based on the links you
> provided. Communication between server and client side is working fine
> (using pure JSON now). Notifications (triggered on client side) are
> working as well.

That's good to hear :)

> Using the LCA approach for implementing custom widgets isn't recommend
> by the release notes of RAP 2.0. Nonetheless RAP 2.0 still uses LCAs for
> its widgets. Why?

Because it's a whole lot of work to change that. Anyway, the widget LCAs
will be changed to use the Remote API as well. We're looking forward to
replace the concept of lifecycle phases in favor of the remote API in
some future version.

> Is using the LCA approach still a way for migrating my
> custom widgets? Or shall I eliminate all LCA usage?

LCAs are still supported but discouraged for new widgets. At some point
in time, we'll have to discontinue support for LCAs.

> How do I migrate custom widgets based on qooxdoo? Where do I have to
> place my code handling things like
> "rap.registerTypeHandler('myCustomWidget')" and the like? In the
> qooxdoo-constructor of my widget?

You probably know that RAP maintains a modified subset of qooxdoo. The
classes have moved to the rwt namespace. However, you can use these
classes at your own risk.

The typehandler has to be registered only once, directly in the code
that defines the widget. In the factory function, you'd create an
instance of your widget.


Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:[ANN] RAP 2.0 M2 is available
Next Topic:RAP/RWT JUnit testing
Goto Forum:
  


Current Time: Fri Apr 19 21:07:37 GMT 2024

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

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

Back to the top