Hello Stéphane,

You simply have to use tr:head to add the skin's CSS file to your pages. If
you use Firefox, you should install Firebug and check the generated markup
to see if a CSS was included. If so, try to put the generated CSS url in
your browser to see if the CSS can be found on server side. If it does, try
to clear your browser cache as it might contain an older version of the CSS
preveting you from seeing your changes.


Regards,

~ Simon

On 5/25/07, Stéphane Poirier <[EMAIL PROTECTED]> wrote:

I tried combining JSF 1.2 with Trinidad 1.2 and 1.0 SNAPSHOTS and included
the commons-digester-1.6 to my files but, it just popped some errors. I
must stick with JSF 1.2, unless there is know issues of skinning problems
between JSF 1.2 and Trinidad 1.0/1.2.
It would be interresting if there could be a way to track that bug... the
only things I noticed are :
- if I enter an invalid skin in trinidad-config.xml, I get an error
(obviously)
- if I enter an invalid .css file in stinidad-skins.xml, i get no error

Also, am I supposed to include anything special to my JSPs to make skins
work? (I hope this wasn't such a begginer mistake! :P)

On 5/25/07, Petr Kotek < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> problem may be in JSF 1.2. I am using JSF 1.1 RI and
> trinidad-api-1.0.1-SNAPSHOT.jar, trinidad-impl-1.0.1-SNAPSHOT.jar
> from
> 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/trinidad/.
> ..
> Other libs:
> commons-beanutils-1.6.1.jar
> commons-collections-2.1.jar
> commons-digester-1.5
> commons-logging-1.0.3.jar
>
> Note: File trinidad-impl-1.0.1-SNAPSHOT.jar must be in project dir
> /WEB-INF/lib/
>
> For JSF 1.2 (I think) you must use trinidad 1.2 branch in same
> repository...
>
> Peter
>
> Stéphane Poirier wrote:
> > Good points, yet this dows not solves the problem. are there any
> > special libraries beyond those I need to include :
> >
> >     * commons-beanutils-1.6.jar
> >     * commons-collections-2.0.jar
> >     * commons-logging-1.0.jar
> >     * jsf-facelets-1.1.6.jar
> >     * trinidad-api-1.0.0-incubating.jar
> >     * trinidad-impl-1.0.0-incubating.jar
> >     * For JSF 1.2 : jsf-api.jar and jsf-impl.jar
> >
> > ?
> >
> > On 5/25/07, *Petr Kotek* < [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]
> >>
> > wrote:
> >
> >     Hi,
> >
> >     I look on Your config and it seams OK - I have the same.
> >     Only background-color number must be in hex - #000099 and there
> are
> >     unnecessary spaces in
> >     " http://myfaces.apache.org/trinidad/config
> >     <http://myfaces.apache.org/trinidad/config >".
> >
> >     Check character upper/lower case in directory paths, clear browser
> >     cache, refresh page by Ctrl+F5 ...
> >
> >     May be this help,
> >
> >     Peter
> >
> >
> >
> >     Stéphane Poirier wrote:
> >     > Hi,
> >     >
> >     > I'm a new Trinidad user and I'm unable to get the skinning to
> work.
> >     > Maybe I did something wrong or forgot something. Trinidad tags
> are
> >     > displayed in the webpage (but not skinned). I installed the skin
> >     > "beach" from the demo, adding a block that would be supposed to
> >     skin a
> >     > <tr:inputText> but it doesn't. Some help would we very
> appreciated!
> >     >
> >     > Added in skins\beach\beach.css :
> >     > .AFFieldText {
> >     >     text-decoration:none;
> >     >     font-size: 22px;
> >     >     font-family: verdana, arial, helvetica, sans-serif;
> >     >     color: fuchsia;
> >     >     background-color:000099;
> >     > }
> >     >
> >     > WEB-INF\trinidad-skins.xml :
> >     > <?xml version="1.0" encoding="ISO-8859-1"?>
> >     > <skins xmlns="http://myfaces.apache.org/trinidad/skin";>
> >     >     <skin>
> >     >         <id>beach.desktop </id>
> >     >         <family>beach</family>
> >     >
> >     > <render-kit-id>org.apache.myfaces.trinidad.desktop
> </render-kit-id>
> >     >
> <style-sheet-name>skins/beach/beach.css</style-sheet-name>
> >     >     </skin>
> >     > </skins>
> >     >
> >     > WEB-INF\trinidad-config.xml :
> >     > <?xml version="1.0" encoding="ISO-8859-1"?>
> >     > <trinidad-config xmlns="
> >     http://myfaces.apache.org/trinidad/config
> >     < http://myfaces.apache.org/trinidad/config>
> >     > <http://myfaces.apache.org/trinidad/config >">
> >     >   <debug-output>true</debug-output>
> >     >   <skin-family>beach</skin-family>
> >     > </trinidad-config>
> >     >
> >     > In the .jsp :
> >     > <tr:inputText value="test" />
> >     >
> >     > The essential of WEB-INF\web.xml :
> >     >      (...)
> >     >      (... context-params ...)
> >     >
> >     >    <filter>
> >     >     <filter-name>trinidad</filter-name>
> >     >
> >     >
> >     <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter
> </filter-class>
> >     >   </filter>
> >     >
> >     >   <filter-mapping>
> >     >     <filter-name>trinidad</filter-name>
> >     >     <servlet-name>faces</servlet-name>
> >     >   </filter-mapping>
> >     >
> >     >  <servlet>
> >     >   <servlet-name>resources</servlet-name>
> >     >
> >     >
> >     <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet
> </servlet-class>
> >     >  </servlet>
> >     >
> >     >  <servlet>
> >     >   <servlet-name>faces</servlet-name>
> >     >   <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >     >  </servlet>
> >     >
> >     > <servlet-mapping>
> >     >     <servlet-name>resources</servlet-name>
> >     >     <url-pattern>/adf/*</url-pattern>
> >     > </servlet-mapping>
> >     >
> >     >   <servlet-mapping>
> >     >     <servlet-name>faces</servlet-name>
> >     >     <url-pattern>/HWTrinidad/*</url-pattern>
> >     >   </servlet-mapping>
> >     >      (...)
> >     >
> >     >
> >     > Thanks in advance!
> >
> >
>
>

Reply via email to