Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP e4 - org.eclipse.rap.ui.forms
RAP e4 - org.eclipse.rap.ui.forms [message #1728103] Thu, 31 March 2016 06:52 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
I'm trying to run an e4 RAP application that includes some forms widgets in the package org.eclipse.ui.forms and below. These widgets are contained for rap in the org.eclipse.rap.ui.forms bundle.

In order to use them in an e4 RAP environment I have to include org.eclipse.rap.ui which I probably shouldn't. But anyway it mainly runs and renders the forms (ScrolledForm, Sections and so on).

The Hyperlink widget (org.eclipse.ui.forms.widgets.Hyperlink) does not work, though. If I include a Hyperlink I'm getting the following error:

Error: Error: Operation "create" on target "w279" of type "null" failed:
No Handler for type forms.widgets.Hyperlink
Properties: 
parent = w277
style = NONE
children = null
bounds = 5,29,46,20
tabIndex = 11
background = 0,0,0,0

    at Object.rwt.remote.MessageProcessor._processError (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:225:3803)
    at Object.rwt.remote.MessageProcessor.processOperationArray (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:225:920)
    at Object.rwt.remote.MessageProcessor.processMessage (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:225:249)
    at rwt.qx.Class.define.members._handleSuccess (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:229:3428)
    at Object._success (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:98:1012)
    at Object.rwt.remote.Request._onReadyStateChange (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:98:1821)
    at XMLHttpRequest. (http://localhost:8080/funtrade-ide/rwt-resources/rap-client.js:7:219)
  Debug: off
  Request: {"head":{"requestCounter":13},"operations":[["notify","w233","Selection",{"button":1,"shiftKey":false,"ctrlKey":false,"altKey":false}],["notify","w36","Hide",{}],["set","w1",{"cursorLocation":[60,83]}]]}
Re: RAP e4 - org.eclipse.rap.ui.forms [message #1728632 is a reply to message #1728103] Wed, 06 April 2016 06:48 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
which RAP version are you using? Is the error reproducible with old
workbench based application?
Regards,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP e4 - org.eclipse.rap.ui.forms [message #1728635 is a reply to message #1728103] Wed, 06 April 2016 07:07 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi again,
just looked at the code in "org.eclipse.ui.forms". The JS code needed by
form widgets is specified in "org.eclipse.rap.ui.resources" extension
point. I doubt this will work in e4.
Regards,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP e4 - org.eclipse.rap.ui.forms [message #1728640 is a reply to message #1728635] Wed, 06 April 2016 08:00 Go to previous messageGo to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
Do you know of a workaround? I could try to register these resources myself but don't know how.
Re: RAP e4 - org.eclipse.rap.ui.forms [message #1728650 is a reply to message #1728640] Wed, 06 April 2016 09:14 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
maybe looking into the old workbench RAP bundle will help. Anyway, you
will need to modify the org.eclipse.rap.ui.forms bundle i think.

[1]
http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.ui.workbench/Eclipse%20UI/org/eclipse/rap/ui/internal/servlet/WorkbenchApplicationConfiguration.java
[2]
http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.ui.workbench/Eclipse%20UI/org/eclipse/rap/ui/internal/servlet/ResourceReader.java
[3]
http://git.eclipse.org/c/rap/org.eclipse.rap.git/tree/bundles/org.eclipse.rap.ui.workbench/Eclipse%20UI/org/eclipse/rap/ui/internal/servlet/ResourceRegisterer.java

HTH,
Ivan

--
Ivan Furnadjiev

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP e4 - org.eclipse.rap.ui.forms [message #1731586 is a reply to message #1728650] Sat, 07 May 2016 10:04 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
Thanks, this helped. I just had to add the following two lines from the old WorkbenchApplicationConfiguration to my own app configuration's configure method:

        registerThemeableWidgets(application);
        registerResources(application);


(and I had to copy the code from WorkbenchApplicationConfiguration). With this, I can use the unchanged org.eclipse.rap.ui.forms bundle.
Previous Topic:[ANN] RAP 3.1 M6 published
Next Topic:2 Different RAP Versions in one Project possible?
Goto Forum:
  


Current Time: Thu Sep 26 06:44:33 GMT 2024

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

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

Back to the top