Forums de discussion

ICEfaces rime CSS not loading

Satheesh Pesaru, modifié il y a 12 années.

ICEfaces rime CSS not loading

New Member Publications: 8 Date d'inscription: 11/09/08 Publications récentes
Hi Neil,

We are usng Liferay v6 with ICEfaces 2.0.2, i tried to include icefaces Panel tab and panel collapsible components on the page, but the css of ICEfaces is not loading.

Please find the inclusion of css in xhtml.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:icecore="http://www.icefaces.org/icefaces/core">

<h:head>
<ice:outputStyle href="/css/main.css" type="text/css" />
<ice:outputStyle href="/xmlhttp/css/rime/rime-portlet.css" />

</h:head>

But when i check this using firebug it is showing the css content under "<ice:outputStyle href="/xmlhttp/css/rime/rime-portlet.css" />" in a code format like below.

<link type="text/css" rel="stylesheet" href="/WorkbenchPOC-portlet/xmlhttp/css/rime/rime-portlet.css">
‹ �������í]ësÛ¶²ÿÜÎô À¤Óž6c;¶ ;‰3÷ÎزÝxŽ {,æ䓇 !‹7 ©!)?šÉÿ~ � â± )Yrœ´ÖÉ© â±»Ø]üðàâÅóŸ~$Ïɟ4Ë£4Ù#g §dkc‹%ò ý1%Ã4)hRä$ ‘b åd Ŕ %ùlð tX"… ”œ¥ Eq ‹Ù Ž†ä4 Ò$§z ¬nò Ëû¬|úì÷·ä>‘IpO’´ ³œjÐ»! $Jx%Ãt2£ Rr cÞfYÍ ùXV’ Š JH�¹§÷‚d•‹ ¯h\ Ó½ /noo7&‚æ4»~ Ì¿Pœ÷ÒQq˘ £¼È¢Á¬ !™%!͌ R= ° $äÙ~œôžñz A åkäÃIÿÝù úäÃþååþûþGr~Löß $ÿ>y ¸F(° Ó»iFs tF"Æ*


I think it is not encoding the css, could you please help me out in resolving this.

Regards
Satheesh
thumbnail
Johann Kneringer, modifié il y a 12 années.

RE: ICEfaces rime CSS not loading

Junior Member Publications: 42 Date d'inscription: 10/11/11 Publications récentes
Hi,

I have excactly the same problem...

My (ugly) workaround is to extract the icefaces.jar, locate the resources (Images + css-files), and put it by hand into my portlet...It works, but it should work out of the box...


Can you post your web.xml file of your portlet?

Are there known issues for this problem?
Satheesh Pesaru, modifié il y a 12 années.

RE: ICEfaces rime CSS not loading

New Member Publications: 8 Date d'inscription: 11/09/08 Publications récentes
Hi Johann,

As a workaround i too did the same thing, i e took the css and images for the components which i need from icefaces src and used that. But it is not the proper way for implementation.

I googled for this problem but i see no solution anywhere.

I think problem might be, in ICEfaces 2.0 css and image files are compressed and when we deploy this into Liferay, liferay interanally also use compression feature, so may be this double compression is creating problem. I am working on that if i am successful will rply you back with solution.

Find the attached web.xml.

Regards
Satheesh

Pièces jointes:

Satheesh Pesaru, modifié il y a 12 années.

RE: ICEfaces rime CSS not loading

New Member Publications: 8 Date d'inscription: 11/09/08 Publications récentes
Hi Johann,

Add this property "speed-filters-enabled= false" in liferay-plugin-package.properties.

When you add the above property to liferay-plugin-package.properties in you application war file then liferay will not compress the css and images.

I tested it it's working fine. But while including css include 'rime-portlet.css' taher than rime.css.

<ice:outputStyle href="/xmlhttp/css/rime/rime-portlet.css" />

Regards
Satheesh
thumbnail
Johann Kneringer, modifié il y a 12 années.

RE: ICEfaces rime CSS not loading

Junior Member Publications: 42 Date d'inscription: 10/11/11 Publications récentes
how nice!

it works for me...

thank you alot...I will also post this link in the icefaces forum, because there are also a lot of people who have problems with the same issue...
thumbnail
Neil Griffin, modifié il y a 12 années.

RE: ICEfaces rime CSS not loading

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
FYI, the speed-filters-enabled=false configuration option is also found in the Example ICEfaces 1.8 portlet:
https://github.com/liferay/liferay-faces/blob/master/demos/bridge/icefaces3-compat-portlet/src/main/webapp/WEB-INF/liferay-plugin-package.properties
http://www.liferay.com/community/liferay-projects/liferay-faces/demos#icefaces3-compat-portlet