Foros de discusión

Vaadin 7 OSGI portlet with custom CSS

Andreas Claus, modificado hace 7 años.

Vaadin 7 OSGI portlet with custom CSS

New Member Mensajes: 7 Fecha de incorporación: 13/10/16 Mensajes recientes
Hello,

I try to get a custom CSS within an OSGI-Vaadin-portlet working, but failed.

The server lists the following error message:
13:15:48,140 WARN [http-nio-8080-exec-1][code_jsp:181] {code="404", msg="ProxyServlet: /o/vaadin7.7.3/VAADIN/themes/mytheme/styles.css", uri=/o/vaadin7.7.3/VAADIN/themes/mytheme/styles.css}

My working environment is: Liferay 7.0 GA2 and Vaadin 7.7.3.
I've installed Vaadin as OSGI-modules using Sampsa's com.vaadin.liferay project at github (https://github.com/sammso/com.vaadin.liferay).

I deploy a Vaadin-portlet with the following annotations in the UI class:
@Component(
scope = ServiceScope.PROTOTYPE,
property = {
"com.liferay.portlet.display-category=category.sample",
"javax.portlet.display-name=My test portlet"
},
service = UI.class
)
@Theme("mytheme")
public class MyUI extends UI { ...

In the portlet jar-file, which I deploy on the server, the css file is at the following location:
META-INF/resources/VAADIN/themes/mytheme/styles.css

Maybe someone can help me out at this problem?

Kind regards,
Andreas