You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Francisco Passos <fr...@gmail.com> on 2007/06/27 11:27:37 UTC
[Trinidad] Skinning from a war file
I'm using a skin perfectly when the application is expanded.
However when I generate a war file the skin isn't used for rendering...
here's my trinidad-skins.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<skins xmlns="http://myfaces.apache.org/trinidad/skin">
<skin>
<id>
stp.desktop
</id>
<family>
stp
</family>
<render-kit-id>
org.apache.myfaces.trinidad.desktop
</render-kit-id>
<style-sheet-name>
resources/css/skin-stp.css
</style-sheet-name>
<extends>simple.desktop</extends>
</skin>
</skins>
When expanded, the skin-stp.css file is located in
WEB-INF/../resources/css/skin-stp.
Inside the war file, I've tried both in the same place and moving the
resources dir into WEB-INF. None seems to work.
Surely I'm missing something...
Re: [Trinidad] Skinning from a war file
Posted by Francisco Passos <fr...@gmail.com>.
/resources/css/skin-stp.css did it
Plus, I think there was a browser cache problem as well.
Thank you,
Francisco
On 6/27/07, Danny Robinson <da...@gmail.com> wrote:
>
> Did you try an absolute path to your css file (e.g. /resources or
> /WEB-INF/...../resources).
>
> Danny
>
> On 6/27/07, Francisco Passos <francisco.passos@gmail.com > wrote:
> > I'm using a skin perfectly when the application is expanded.
> >
> > However when I generate a war file the skin isn't used for rendering...
> > here's my trinidad-skins.xml:
> >
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> > <skin>
> > <id>
> > stp.desktop
> > </id>
> > <family>
> > stp
> > </family>
> > <render-kit-id>
> > org.apache.myfaces.trinidad.desktop
> > </render-kit-id>
> > <style-sheet-name>
> > resources/css/skin-stp.css
> > </style-sheet-name>
> > <extends> simple.desktop</extends>
> > </skin>
> > </skins>
> >
> > When expanded, the skin-stp.css file is located in
> > WEB-INF/../resources/css/skin-stp.
> >
> > Inside the war file, I've tried both in the same place and moving the
> > resources dir into WEB-INF. None seems to work.
> >
> > Surely I'm missing something...
> >
>
>
> --
> Chordiant Software Inc.
> www.chordiant.com
>
Re: [Trinidad] Skinning from a war file
Posted by Danny Robinson <da...@gmail.com>.
Did you try an absolute path to your css file (e.g. /resources or
/WEB-INF/...../resources).
Danny
On 6/27/07, Francisco Passos <fr...@gmail.com> wrote:
> I'm using a skin perfectly when the application is expanded.
>
> However when I generate a war file the skin isn't used for rendering...
> here's my trinidad-skins.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <skins xmlns="http://myfaces.apache.org/trinidad/skin">
> <skin>
> <id>
> stp.desktop
> </id>
> <family>
> stp
> </family>
> <render-kit-id>
> org.apache.myfaces.trinidad.desktop
> </render-kit-id>
> <style-sheet-name>
> resources/css/skin-stp.css
> </style-sheet-name>
> <extends>simple.desktop</extends>
> </skin>
> </skins>
>
> When expanded, the skin-stp.css file is located in
> WEB-INF/../resources/css/skin-stp.
>
> Inside the war file, I've tried both in the same place and moving the
> resources dir into WEB-INF. None seems to work.
>
> Surely I'm missing something...
>
--
Chordiant Software Inc.
www.chordiant.com