Virgo + RAP + OSGi: Extension Points and Fancy Theme [message #1037285] |
Tue, 09 April 2013 07:30  |
Eclipse User |
|
|
|
Hello guys,
as mentioned in another thread, we are developing an OSGi based application together with RAP 2.0
The target runtime is Eclipse Virgo 3.6.0
The Application is deployed as a .jar file.
My rap-context.xml looks as follows
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="de.hswt.stoffident.ui"/>
<context:annotation-config />
<bean id="simpleConfiguration" class="de.hswt.stoffident.ui.SIApplicationConfiguration" />
</beans>
And the SIApplicationConfiguration like
public void configure(Application application) {
Map<String, String> properties = new HashMap<String, String>();
properties.put(WebClient.THEME_ID, RWT.DEFAULT_THEME_ID);
application.addStyleSheet(RWT.DEFAULT_THEME_ID, "css/ri.css");
application.setOperationMode(Application.OperationMode.SWT_COMPATIBILITY);
application.addEntryPoint("/app", SIApplication.class, properties);
}
We want to use the Fancy respectively the Buisness.
This works fine in a standalone application using the extension point org.eclipse.rap.ui.serviceHandler
But how can i include the themes using our setup mentioned before?
What works is using the css.file, but then the additional Widgets are missing (Top menu and so on...)
If you need further information feel free to ask
Thanks in advance
|
|
|
|
|
|
|
|
Re: Virgo + RAP + OSGi: Extension Points and Fancy Theme [message #1049197 is a reply to message #1047457] |
Thu, 25 April 2013 09:52  |
Eclipse User |
|
|
|
I was wrong informed:
One of my colleagues knew about about the extension Point mechanism but he had trouble getting it to work.
Is it possible for Virgo to handle the Extension Point mechanism and start a RAP Application deployed as a .jar file and the failure was on our site or is Virgo not capable to handle the plugin.xml?
The JAR approach works if we provide our configuration as mentioned in the first post. I have found an example where the Application was deployed as a .war file but we want to avoid a .war file.
|
|
|
Powered by
FUDForum. Page generated in 0.56240 seconds