Fórum

RE: Vaadin Chameleon in Liferay

thumbnail
Jack Bakker, modificado 12 Anos atrás.

Vaadin Chameleon in Liferay

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
I'm looking for guidance on how to integrate Vaadin Chameleon themes in Liferay

http://demo.vaadin.com/chameleontheme
thumbnail
Jack Bakker, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
for something that resembles initial success I have:

1) downloaded from http://demo.vaadin.com/chameleontheme as my-chameleon.zip
2) unzip my-chameleon.zip so see the jars in it
3) unjar the jars copy and move styles into a) ROOT/html/VAADIN/themes/chameleon and b) ROOT/html/VAADIN/themes/my-chameleon
4) in Vaadin main layout, setTheme("my-chameleon");

not sure why I can't just place the jars somewhere to make this work ; but if I go that way FireBug tells me the css have no content (I tried global classpaths and in the portlet WEB-INF/lib ; should the Chameleon web app be offering for liferay users a class prefix based on <css-class-wrapper> ? (not sure if I'm on the right track here)
thumbnail
Sami Ekblad, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

New Member Postagens: 11 Data de Entrada: 08/09/09 Postagens Recentes
Have you tried to put the theme jar files into the global theme folder ROOT/html/VAADIN/themes/ ?
thumbnail
Jack Bakker, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Thanks Sami

yes I tried that:

ROOT/html/VAADIN/themes/vaadin-chameleon-theme-1.0.2.jar
ROOT/html/VAADIN/themes/my-chameleon.jar

with setTheme("my-chameleon")

also tried:

ROOT/html/VAADIN/themes/vaadin-chameleon-theme-1.0.2.jar
ROOT/html/VAADIN/themes/chameleon-blue.jar

styles didn't get picked up

only way to get it to work for me was as described in my post of August 14, 2011 2:38 PM
thumbnail
Jack Bakker, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
there is this approach which has helped me along: http://kastork.github.com/2011/01/Liferay-Friendly-VAADIN-Themes/

however, I foresee wanting multiple portlets to involve the same chameleon theme, so I'll stick with my approach for now to centralize changes to my-chameleon styles until I know a better approach to just plop the jars somewhere
thumbnail
Sami Ekblad, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

New Member Postagens: 11 Data de Entrada: 08/09/09 Postagens Recentes
Cannot test myself atm, but based on what I discussed with others this should be possible...

I cannot test myself very easily, but you said you tried to put the jars into the global lib folder ROOT/WEB-INF/lib? I think in practice Liferay copies the jars from there to web applications own lib folder, so that should be effectively the same as the chameleon requires.

Anyway, extracting jars is ok approach also, if you need to further modify themes.
thumbnail
Jack Bakker, modificado 12 Anos atrás.

RE: Vaadin Chameleon in Liferay

Liferay Master Postagens: 978 Data de Entrada: 03/01/10 Postagens Recentes
Thanks Sami

global classpath includes tomcat*/lib and tomcat*/lib/ext
ROOT/WEB-INF/lib/*.jar can be copied to a portlet's WEB-INF/lib by using a reference to the jar in the portlet's liferay-plugin-package.properties

I will try different combinations to see if I can provide any insights