Javascript error on Hyperlink Widget [message #1743720] |
Mon, 19 September 2016 04:34  |
Eclipse User |
|
|
|
Hi all,
I'm trying to use Hyperlink widget in my standalone RAP application:
final Hyperlink linkLogout = toolkit.createHyperlink(form.getBody(), "Logout", SWT.NONE);
linkLogout.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).align(SWT.RIGHT, SWT.CENTER).create());
but always gets this exception:
Error: Error: Operation "create" on target "w8" of type "null" failed:
No Handler for type forms.widgets.Hyperlink
Properties:
parent = w7
style = NONE
children =
bounds = 946,34,37,17
tabIndex = 6
foreground = 0,0,255,255
background = 255,255,255,255
...
Is it possible at all ?
Thanks & Regards,
SetNug
|
|
|
|
|
Re: Javascript error on Hyperlink Widget [message #1744962 is a reply to message #1744516] |
Mon, 03 October 2016 08:42  |
Eclipse User |
|
|
|
Hi,
when using the Workbench, the forms widget resources are registering with extension pont (see org.eclipse.rap.ui.forms/plugin.xml). The corresponding Java code that deals with these extension points is in WorkbenchApplicationConfiguration.
You have to do the same in your application configuration:
1. Register manually all the JS files defined in "org.eclipse.rap.ui.resources" extension pont
2. Add all these widgets as themeable widgets
Check WorkbenchApplicationConfiguration#registerResources and WorkbenchApplicationConfiguration#registerThemeableWidgets as a code example.
HTH,
Ivan
|
|
|
Powered by
FUDForum. Page generated in 0.03059 seconds