i am really new in vaadin.
I want to user a custom theme for my vaadin portlet instead using reindeer theme.
After downloading Vaadin Plug in for Eclipse, i used online tutorials to create a vaadin theme.
Hello there,
I am new to Vaadin as well, I am just wondering if you have proper structure to your project. Check the image from the vaadin book. Make sure you have the right structure for the Themes.
please see
this thread for solution on using themes when running on Liferay. In short: Portlet 2.0 specification does not offer static resource serving from within the portlet package, so you must install the theme into your Liferay instance.
I tried already. It didn’t work and i am starting to get frustrated now.
How did u create your custom theme?
With Vaadin-Eclipse?? First, you made a vaadin project, right? After that, you create a vaadin theme that connected to this project?
Correct, it will not work. I use a hook plugin to deploy the style changes, then your portlet plugin can use the setTheme() to set the theme to the one you deployed via a hook.
Note that under Liferay, you cannot do any imports within your styles.css file; it must be the complete CSS for your theme.
I’ve posted a question about whether I could use the vaadin build process to leverage creating my single styles.css file by processing imports, but as of yet there have been no replies, so I’m still left w/ manually pasting the styles.css file together…
In Vaadin themes on Liferay, relative imports can be used if the theme is in the shared static resources directory together with the standard themes.
One more option: you could use one of the standard Vaadin themes already deployed on Liferay, but doing your customization of the theme using Liferay specific mechanisms (parameter header-css in your liferay-portlet.xml) instead of as a Vaadin theme - you can still use mostly the same CSS rules in it. Although slightly less clean, this way, you can include all the CSS etc. in your portlet and the portal will take care of mapping the paths to access the related resources etc.