Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo + RAP + OSGi: Extension Points and Fancy Theme
Virgo + RAP + OSGi: Extension Points and Fancy Theme [message #1031867] Tue, 02 April 2013 09:57 Go to next message
Tobias P. is currently offline Tobias P.Friend
Messages: 43
Registered: April 2012
Member
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 #1032581 is a reply to message #1031867] Wed, 03 April 2013 07:15 Go to previous messageGo to next message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Quote:
The Application is deployed as a .jar file.


Does your .jar file contain a web.xml (is running as a Web Application Bundle) or do you register your application configuration as an OSGi service like this?

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">

	<bean id="applicationConfiguration" class="com.eclipsesource.virgo.examples.rap.blueprint.HelloWorldConfiguration" />

	<service ref="applicationConfiguration" interface="org.eclipse.rap.rwt.application.ApplicationConfiguration" />

</blueprint>


(We prepared some examples https://github.com/eclipsesource/rap-virgo-examples for the EclipseCon http://www.eclipsecon.org/2013/sessions/deploy-and-manage-rap-applications-equinox-jetty-virgo-apache-karaf-and-tomcat to show the differences of this two deployment options.)

Providing the ApplicationConfiguration as an OSGi service is the most commonly used path in plain Equinox installations. I'll try to add the themes bundle org.eclipse.rap.design.example (which contains the fancy and business theme) to the blueprint example early next week.
Re: Virgo + RAP + OSGi: Extension Points and Fancy Theme [message #1035783 is a reply to message #1032581] Sun, 07 April 2013 12:00 Go to previous messageGo to next message
Tobias P. is currently offline Tobias P.Friend
Messages: 43
Registered: April 2012
Member
Hello,

thanks for your reply.

The .jar file does not contain an web.xml

The Application is registered like this

<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="Component Definition">
<implementation class="foo.bar.ui.SIApplicationConfiguration"/>
<service>
<provide interface="org.eclipse.rap.rwt.application.ApplicationConfiguration"/>
</service>
<property name="contextName" type="String" value="stoffident"/>
</scr:component>
Re: Virgo + RAP + OSGi: Extension Points and Fancy Theme [message #1037247 is a reply to message #1035783] Tue, 09 April 2013 10:33 Go to previous message
Florian Waibel is currently offline Florian WaibelFriend
Messages: 166
Registered: June 2010
Senior Member
Hello Tobias,

After consulting a RAP developer it seems your issue with the theme is somehow related to your problem with the forms UI and your setup using the ApplicationConfiguration. Please post your question in the RAP forum because your question seems not Virgo specific. Chances are way better to catch the attention of anyone who knows a possible workaround/solution there.

Regards,
florian

[Updated on: Tue, 09 April 2013 10:34]

Report message to a moderator

Previous Topic:Remote command execution to the SSH shell?
Next Topic:Import-Bundle resolution not able to import packages
Goto Forum:
  


Current Time: Thu Apr 18 13:19:58 GMT 2024

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

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

Back to the top