myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stéphane Poirier" <stephane.poirie...@gmail.com>
Subject Re: Problem with Trinidad skinning
Date Fri, 25 May 2007 15:31:19 GMT
PROBLEM SOLVED.... There WAS something to add to my JSP (I'm ashamed).... I
forgot the <tr:document> tag... now everything is fine!

Thanks A LOT for your help everyone!


On 5/25/07, Stéphane Poirier <stephane.poirier01@gmail.com> 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 < kotek@crcdata.cz> 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* < kotek@crcdata.cz <mailto: kotek@crcdata.cz
> > >>
> > > 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!
> > >
> > >
> >
> >
>

Mime
View raw message