Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Jack Bakker
Vaadin Chameleon in Liferay
14 de Agosto de 2011 08:56
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 614

Data de entrada: 3 de Janeiro de 2010

Mensagens recentes

I'm looking for guidance on how to integrate Vaadin Chameleon themes in Liferay

http://demo.vaadin.com/chameleontheme
Jack Bakker
RE: Vaadin Chameleon in Liferay
14 de Agosto de 2011 11:38
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 614

Data de entrada: 3 de Janeiro de 2010

Mensagens 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)
Sami Ekblad
RE: Vaadin Chameleon in Liferay
30 de Agosto de 2011 01:01
Resposta

Sami Ekblad

Ranking: New Member

Mensagens: 11

Data de entrada: 8 de Setembro de 2009

Mensagens recentes

Have you tried to put the theme jar files into the global theme folder ROOT/html/VAADIN/themes/ ?
Jack Bakker
RE: Vaadin Chameleon in Liferay
5 de Setembro de 2011 09:47
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 614

Data de entrada: 3 de Janeiro de 2010

Mensagens 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
Jack Bakker
RE: Vaadin Chameleon in Liferay
5 de Setembro de 2011 10:40
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 614

Data de entrada: 3 de Janeiro de 2010

Mensagens 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
Sami Ekblad
RE: Vaadin Chameleon in Liferay
6 de Setembro de 2011 02:51
Resposta

Sami Ekblad

Ranking: New Member

Mensagens: 11

Data de entrada: 8 de Setembro de 2009

Mensagens 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.
Jack Bakker
RE: Vaadin Chameleon in Liferay
6 de Setembro de 2011 07:15
Resposta

Jack Bakker

Ranking: Liferay Master

Mensagens: 614

Data de entrada: 3 de Janeiro de 2010

Mensagens 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