Javascript error on Hyperlink Widget [message #1743720] |
Mon, 19 September 2016 08:34 |
|
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 #1744516 is a reply to message #1743723] |
Tue, 27 September 2016 15:50 |
|
Hi Ivan,
I've tried what's suggested by adding ServletContextListener this way:
public class SpringRWTServletContextListener implements ServletContextListener
{
@Override
public void contextInitialized(ServletContextEvent event)
{
final ResourceLoader loader = new ResourceLoader()
{
@Override
public InputStream getResourceAsStream(String resourceName) throws IOException
{
return getClass().getClassLoader().getResourceAsStream(resourceName);
}
};
final ThemeManager themeManager = new ThemeManager();
themeManager.addThemeableWidget(Hyperlink.class.getName(), loader);
}
@Override
public void contextDestroyed(ServletContextEvent event){}
}
And then I register it in web.xml.
But the problem persists.
Thanks & Regards,
Setya
|
|
|
|
Powered by
FUDForum. Page generated in 0.04501 seconds