| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 25/08/2010 07:38:56
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 30/08/2010 15:25:43
|
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. |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 31/08/2010 01:46:01
|
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.
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 31/08/2010 10:35:48
|
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. |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 01/09/2010 02:04:53
|
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
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 01/09/2010 10:18:49
|
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. |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 02/09/2010 01:40:10
|
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>
|
|
|
 |
|
|