incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: TrinidadFilter has not been installed
Date Mon, 25 Dec 2006 09:17:57 GMT
Hi Duong,

after xmas, I will work on the "project" again. I just started it, I
am also looking for toplink and JPA. As DB I prefer Derby or HSQL
since they are able to embed in an application on an easy way (at
least that is true for HSQL).

The build maybe because I am building Shale 104 on my box; same is
true for Trinidad

The YUI! I like for the *page design* :)

I'll add you to the project later.

Thx,
M

On 12/24/06, Duong BaTien <duong.batien@gmail.com> wrote:
> On Sun, 2006-12-24 at 15:20 +0100, Matthias Wessendorf wrote:
> > Hey Duong,
> >
> > I sent you offline a maven2 project that uses Spring2, Trinidad,
> > MyFaces, Facelets and Shale ViewController/Application Manager.
> >
> > I will release it here:
> > http://code.google.com/p/facesgoodies/
> >
> > when "ready", means using also javax.persistence and HSQL or Derby.
> > Idea is having a "kickstart" project for jsf and a nice businesslayer
> >
> > hth,
> > Matthias
>
> Hello Matthias:
>
> That is exactly what i am doing :-). I do not use Shale Application
> Manager since you can do everything via viewController init(). For JPA,
> i currently use toplink essentials and Oracle XE. Please put my email in
> your project.
>
> mvn failed in your zip file, but i can follow from the web
> configuration. I expect there is some issue with Facelets and Trinidad
> render kit as in the email i sent you and Adam. If you and Adam want i
> can sent offline a simple facelets NumberBean and Trinidad war file.
> Please let me know if you find something about this.
>
> Thanks
>
> >
> > On 12/22/06, Duong BaTien <duong.batien@gmail.com> 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
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Mime
View raw message