incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duong BaTien <duong.bat...@gmail.com>
Subject Re: TrinidadFilter has not been installed
Date Sat, 23 Dec 2006 16:09:04 GMT
Hello Adam and Matthias:

I start from square 1 with facelets 1.1.12 NumberBean demo and Trinidad
stable 06-dec and found out that
     <default-render-kit-id>
         org.apache.myfaces.trinidad.core
     </default-render-kit-id>
in the faces-config causes a problem of rendering the command button.
When taken out, the NumberBean works and no warning of "TrinidadFilter
has not been installed". There is no SEVERE message either.

I took the <default-render-kit-id> out of the previously posted
configuration of my complex application (at the bottom of this email),
it works and no warning of "TrinidadFilter has not been installed". But
there is a SEVERE message:
    SEVERE: No structure available and no root available
    o.a.myfaces.renderkit.RenderKitFactoryImpl addRenderkit
    Renderkit with renderkitId 'HTML_BASIC' was replaced.

Under both simple and slightly complex applications, there is no
trinidad component; only a simple trinidad-config.xml with 1
<accessibility-mode> tag. By the way, how can i put trinidad-config.xml
in different directory than its default under /WEB-INF

Thanks
BaTien


On Fri, 2006-12-22 at 14:31 -0700, Duong BaTien wrote:
> On Fri, 2006-12-22 at 07:46 +0100, Matthias Wessendorf wrote:
> > Hi Duong,
> > 
> > back to faces ? :)
> > 
> > However, I am not seeing any issue with your web.xml.
> > I am also using the same libs like you and my app runs fine in Jetty.
> > (and tested it just in TC 5.5.17)
> > 
> Hi Matthias:
> 
> Yes i run it on TC 5.5.17 and facelets 1.1.12. I guest i must start from
> square 1 and need some of your advise (i am so far behind):
> 
> 1) Is there any simple app that use facelets and Trinidad so i can start
> from there?
> 2) Preferably the app also uses Shales for viewController, Spring for
> IoC, Shales Dialog and Trinidad pageFlowScope.
> 3) How Trinidad and Myfaces come along with Jsf 1.2? Should i start with
> jsf 1.2 if my project time line is 3 - 6 months?
> 
> Thanks and Merry Christmas
> 
> BaTien
> 
> 
> > 
> > here is the web.xml:
> > 
> > <?xml version = '1.0' encoding = 'ISO-8859-1'?>
> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> >          version="2.4">
> > 
> >   <context-param>
> >     <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
> >     <param-value>false</param-value>
> >  </context-param>
> > 
> >   <context-param>
> >     <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
> >     <param-value>com.sun.facelets.FaceletViewHandler</param-value>
> >   </context-param>
> > 
> >   <!-- Use Documents Saved as *.xhtml -->
> >   <context-param>
> >     <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> >     <param-value>.xhtml</param-value>
> >   </context-param>
> > 
> > 
> >   <context-param>
> >     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >     <param-value>client</param-value>
> >   </context-param>
> > 
> >   <context-param>
> >     <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
> >     <param-value>false</param-value>
> >   </context-param>
> > 
> >   <context-param>
> >     <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
> >     <param-value>session</param-value>
> >   </context-param>
> > 
> >   <!-- Commons Chain Configuration Resources -->
> >   <context-param>
> >     <param-name>org.apache.commons.chain.CONFIG_WEB_RESOURCE</param-name>
> >     <param-value>/WEB-INF/chain-config.xml</param-value>
> >   </context-param>
> > 
> >     <!-- Shale Application Controller Filter -->
> >   <filter>
> >     <filter-name>shale</filter-name>
> >     <filter-class>
> >       org.apache.shale.application.faces.ShaleApplicationFilter
> >     </filter-class>
> >   </filter>
> > 
> >   <filter>
> >     <filter-name>trinidad</filter-name>
> >     <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
> >   </filter>
> > 
> >   <!-- Shale Application Controller Filter Mapping -->
> >   <filter-mapping>
> >     <filter-name>shale</filter-name>
> >     <url-pattern>/*</url-pattern>
> >   </filter-mapping>
> > 
> >   <filter-mapping>
> >     <filter-name>trinidad</filter-name>
> >     <servlet-name>faces</servlet-name>
> >   </filter-mapping>
> > 
> >   <!-- Listener, to allow Jetty serving MyFaces apps -->
> >   <!--listener>
> >     <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >   </listener-->
> > 
> >   <listener>
> >     <listener-class>net.wessendorf.hsql.HsqlListener</listener-class>
> >   </listener>
> > 
> >   <!-- Commons Chain Configuration Listener -->
> >   <listener>
> >     <listener-class>
> >       org.apache.commons.chain.web.ChainListener
> >     </listener-class>
> >   </listener>
> > 
> > 
> >   <!-- Faces Servlet -->
> >   <servlet>
> >     <servlet-name>faces</servlet-name>
> >     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >   </servlet>
> > 
> >   <!-- resource loader servlet -->
> >   <servlet>
> >     <servlet-name>resources</servlet-name>
> >     <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
> >   </servlet>
> > 
> >   <!-- Faces Servlet Mappings -->
> >   <servlet-mapping>
> >     <servlet-name>faces</servlet-name>
> >     <url-pattern>*.faces</url-pattern>
> >   </servlet-mapping>
> > 
> >   <servlet-mapping>
> >     <servlet-name>resources</servlet-name>
> >     <url-pattern>/adf/*</url-pattern>
> >   </servlet-mapping>
> > 
> > </web-app>
> > 
> > 
> > 
> > On 12/22/06, Duong BaTien <duong.batien@gmail.com> wrote:
> > > What did i do wrong here? I start to explore Trinidad with this page
> > > http://wiki.apache.org/myfaces/Facelets_with_Trinidad
> > > But get the warning "The TrinidadFilter has not been installed".
> > >
> > > The libraries include Shale 1.0.4 (core, dialog, remoting, spring,
> > > validator, view), Spring 2.0 (aop, beans, context, core,web), tomahawk
> > > 1.1.5.jar, trinidad stable Dec-06 (api, impl).
> > >
> > > Here is my faces-config:
> > >
> > >  <application>
> > >     <message-bundle>
> > >       com.dbgroups.psi.PsiBundle
> > >     </message-bundle>
> > >     <locale-config>
> > >         <default-locale>en</default-locale>
> > >         <supported-locale>en</supported-locale>
> > >     </locale-config>
> > >     <!-- Use the Trinidad RenderKit -->
> > >     <default-render-kit-id>
> > >         org.apache.myfaces.trinidad.core
> > >     </default-render-kit-id>
> > >   </application>
> > >
> > > Here is my web.xml
> > >
> > >   <context-param>
> > > <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
> > >      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
> > >   </context-param>
> > >     <context-param>
> > >         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> > >         <param-value>.xhtml</param-value>
> > >     </context-param>
> > >     <context-param>
> > >         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> > >         <param-value>client</param-value>
> > >     </context-param>
> > >     <context-param>
> > > <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
> > >       <param-value>all</param-value>
> > >     </context-param>
> > >     <context-param>
> > > <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
> > >       <param-value>false</param-value>
> > >     </context-param>
> > >     <context-param>
> > > <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
> > >       <param-value>true</param-value>
> > >     </context-param>
> > >     <context-param>
> > >  <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
> > >       <param-value>session</param-value>
> > >     </context-param>
> > >     <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>faces</servlet-name>
> > >         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> > >     </servlet>
> > >     <servlet>
> > >       <servlet-name>resources</servlet-name>
> > > <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
> > >     </servlet>
> > >     <servlet-mapping>
> > >         <servlet-name>faces</servlet-name>
> > >         <url-pattern>*.jsf</url-pattern>
> > >     </servlet-mapping>
> > >     <servlet-mapping>
> > >       <servlet-name>resources</servlet-name>
> > >       <url-pattern>/public/budhnet.com/trinidad/*</url-pattern>
> > >     </servlet-mapping>
> > >   <context-param>
> > >     <param-name>javax.faces.CONFIG_FILES</param-name>
> > >     <param-value>
> > >         /WEB-INF/xmlConfig/faces-bean.xml,
> > >         /WEB-INF/xmlConfig/faces-navigation.xml
> > >     </param-value>
> > >     <description>Comma separated list of  config files.</description>
> > >   </context-param>
> > >   <context-param>
> > >     <param-name>contextConfigLocation</param-name>
> > >     <param-value>
> > >         /WEB-INF/xmlConfig/psi.xml
> > >     </param-value>
> > >   </context-param>
> > >     <listener>
> > >       <listener-class>
> > > org.springframework.web.context.ContextLoaderListener
> > >       </listener-class>
> > >     </listener>
> > >
> > > Thanks
> > >
> > >
> > >
> > 
> > 


Mime
View raw message