writing own skin
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
writing own skin  XML
Forum Index -> General Help
Author Message
cgennari

Joined: 24/04/2008 00:00:00
Messages: 11
Offline


Hi all
Is there a way to write own ICEFaces skin (let say, starting from one already existing) and avoiding error from ServeCSSResource() "Cannot find CSS file for ..." blah ?
Thanks in advance
brad.kroeger

Joined: 26/10/2004 00:00:00
Messages: 295
Offline


You should be able to create your own stylesheet with the same class names as those used in the ICEfaces stylesheet. As long as you declare the stylesheet after the ICEfaces stylesheet in your page, the styles in your stylesheet will override the ICEfaces stylesheet.

Brad Kroeger
Developer
ICEsoft Technologies, Inc.
[Email]
cgennari

Joined: 24/04/2008 00:00:00
Messages: 11
Offline


Hi Brad
The problem is that I found no way to have skin with another name then "xp" "rime" or "royal". You can change the appearance of "xp" "rime" and "royal" but no way to create a new skin, let say "foo" (sibling of those mentioned) because the class "ServeCSSResource" check those 3 names.
brad.kroeger

Joined: 26/10/2004 00:00:00
Messages: 295
Offline


The components render out the style classes specified in the stylesheet regardless of whether or not you include our stylesheet.

If you do not include an ICEfaces stylesheet you then have the option of creating your own stylesheet from scratch with your own style classes, adding a copy of the ICEfaces stylesheet with modifications to the existing styles or using our existing style class names to create new styles from scratch.

Brad Kroeger
Developer
ICEsoft Technologies, Inc.
[Email]
cgennari

Joined: 24/04/2008 00:00:00
Messages: 11
Offline


In my skinning app I would write something like this

<head>
<title>Hello world !</title>
<ice:outputStyle href="/xmlhttp/css/#{sessionbean.skinName}/#{sessionbean.skinName}.css" />
</head>

and have a skin ComboBox with selectItems: xp, rime, royale, foo


the first 3 works fine, the forth no ... due to the check that "ServeCSSResource" does
brad.kroeger

Joined: 26/10/2004 00:00:00
Messages: 295
Offline


You have to add your foo stylesheet with a standard link tag.

Brad Kroeger
Developer
ICEsoft Technologies, Inc.
[Email]
cgennari

Joined: 24/04/2008 00:00:00
Messages: 11
Offline


Thanks brad, i'll do so, but ... It was better the other way
I found that "foo" works but other 3 if I write it in /xmlhttp/custom, i.e:

<head>
<title>Hello world !</title>
<ice:outputStyle href="/xmlhttp/custom/#{sessionbean.skinName}/#{sessionbean.skinName}.css" />
</head>

 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team