You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Duong BaTien <du...@gmail.com> on 2006/12/22 05:14:55 UTC

Re: TrinidadFilter has not been installed

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



[Trinidad] TrinidadFilter has not been installed

Posted by Renzo Tomaselli <re...@tecnotp.it>.
Hi, I'm looking after the source of this message too.
I placed a couple of breakpoints: at 
TrinidadFilterImpl.verifyFilterIsInstalled to monitor filter checking 
and TrinidadFilterImpl.doFilter.
When I start my application (Tomahawk+Facelets, under Eclipse+Exadel 
Studio), I get filter checking called *before* filter setting, during 
the RESTORE_VIEW phase of the very first page. Stack is:

TrinidadFilterImpl.verifyFilterIsInstalled(FacesContext) line: 66   
TrinidadPhaseListener.beforePhase(PhaseEvent) line: 103   
PhaseListenerManager.informPhaseListenersBefore(PhaseId) line: 73   
LifecycleImpl.executePhase(FacesContext, PhaseExecutor, 
PhaseListenerManager) line: 85   
LifecycleImpl.execute(FacesContext) line: 70   
FacesServlet.service(ServletRequest, ServletResponse) line: 139   
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) 
line: 252   
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 
173   
ApplicationDispatcher.invoke(ServletRequest, ServletResponse) line: 672   
ApplicationDispatcher.processRequest(ServletRequest, ServletResponse) 
line: 463   
ApplicationDispatcher.doForward(ServletRequest, ServletResponse) line: 
398   
ApplicationDispatcher.forward(ServletRequest, ServletResponse) line: 301   
PageContextImpl.doForward(String) line: 703   
PageContextImpl.forward(String) line: 670   
index.jsp line: 6   

Then after entering and switching to the next page, filter setting is 
called. Stack is:

TrinidadFilterImpl.doFilter(ServletRequest, ServletResponse, 
FilterChain) line: 162   
TrinidadFilter.doFilter(ServletRequest, ServletResponse, FilterChain) 
line: 90   
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) 
line: 202   
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 
173   
StandardWrapperValve.invoke(Request, Response) line: 213   

In general, whenever an action on a page is performed, the sequence is 
correct (set/check). Only the very first page misses the setting, and 
this raises the log warning.
My application works, although I cannot see any row banding on a 
tr:table, not any css is generated. I'm learning the whole skin stuff, 
thus perhaps this is unrelated to the filter issue, but I expected to 
see banding as a the "simple" skin default.

-- Renzo


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
a simple skin (replacing some colors and icons) is part of my demo

-M

On 1/15/07, Duong BaTien <du...@gmail.com> wrote:
> Thanks. Will look at it over the weekend. Still struggling with
> Trinidad, currently at its skin.
>
>
>
> On Sun, 2007-01-14 at 13:24 +0100, Matthias Wessendorf wrote:
> > Hello Duong,
> >
> > I did a first checkin to
> > http://code.google.com/p/facesgoodies/
> >
> > It uses now JPA and Toplink. The demo is currently not more than a
> > simple CRUD with JPA_DAO und some Spring 2.0 Beans.
> >
> > no YUI yet, but two mini_facelet_components and some trinidad skinning.
> >
> > I think u need to download some dependencies on your own to run it
> > (trinidad and javax.el at least)
> >
> > -M
>
>


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

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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
Thanks. Will look at it over the weekend. Still struggling with
Trinidad, currently at its skin.



On Sun, 2007-01-14 at 13:24 +0100, Matthias Wessendorf wrote:
> Hello Duong,
> 
> I did a first checkin to
> http://code.google.com/p/facesgoodies/
> 
> It uses now JPA and Toplink. The demo is currently not more than a
> simple CRUD with JPA_DAO und some Spring 2.0 Beans.
> 
> no YUI yet, but two mini_facelet_components and some trinidad skinning.
> 
> I think u need to download some dependencies on your own to run it
> (trinidad and javax.el at least)
> 
> -M


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
Hello Duong,

I did a first checkin to
http://code.google.com/p/facesgoodies/

It uses now JPA and Toplink. The demo is currently not more than a
simple CRUD with JPA_DAO und some Spring 2.0 Beans.

no YUI yet, but two mini_facelet_components and some trinidad skinning.

I think u need to download some dependencies on your own to run it
(trinidad and javax.el at least)

-M

Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
:) during the vacation period don't expect to much :)))

On 12/27/06, Duong BaTien <du...@gmail.com> wrote:
> On Wed, 2006-12-27 at 21:34 +0100, Matthias Wessendorf wrote:
> > Hi Duong,
> >
> > regarding the <h:commandButton .../> that has been fixed last week in trunk.
> > I fixed a small thing to render something like <h:commandButton
> > value="Click me" ... /> as expected.
> >
> > You are using one of the stable-NAME_OF_A_MONTH-branch, isn't it ?
> >
> > -M
>
> Yes, thanks. Will take a look at it in stable Jan. Love to see your work
> on facelets and YUI.
>
> BaTien
>
> >
> > On 12/26/06, Duong BaTien <du...@gmail.com> wrote:
> > > Hello Matthias:
> > >
> > > With regard to issue with TrinidadFilter, i think it is more complex
> > > than expected and i will experiment with it sometime while going ahead
> > > to learn other trinidad components.
> > >
> > > As previously reported, i used facelets NumberBean as a starting point.
> > > The warning of the issue does not appear under both cases: (1) the use
> > > of o.a.myfaces.trinidad.core as <default-render-kit-id> has problem to
> > > render <h:command> button (2) without o.a.m.trinidad.core, the
> > > NumberBean run as expected. When the application becomes a little more
> > > involved with trinidad dialog and fileupload, the warning appears. I
> > > appreciate some more insight into this issue while looking for more time
> > > to dig a little deeper into it. I have 2 applications demonstrated the
> > > issue that i will share with those who want to take a shot at it.
> > >
> > > I love to see your custom facelets page component with YUI. Is that
> > > similar to the YUI template page or the page with some out-of-the-box
> > > YUI components recently released?
> > >
> > > Thanks.
> > >
> > >
> > >
> > >
> > > On Tue, 2006-12-26 at 14:37 +0100, Matthias Wessendorf wrote:
> > > > > Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
> > > > > parts up in the front of faces-config and web.xml, so now i can replace
> > > > > some of my components with those from trinidad.
> > > >
> > > > so, no more warnings ?
> > > >
> > > > > I am interested in recommended choices of YUI and trinidad components as
> > > > > more will be available in YUI and more jsf parts donated by Oracle. Adam
> > > > > can give some hint here :-)
> > > >
> > > > Yes, Yahoo UI is really nice. With facelets, you can put together a cool design.
> > > > Did you see my custom facelets page component ?
> > > >
> > > >
> > > > > My design is very similar to yours except user bean is in user session
> > > > > with guest profile if user is not locked in, and i have only 1 request
> > > > > scope view controller that also contain trinidad requestContext so you
> > > > > can leverage the best of both world: Shales and Trinidad. The view
> > > > > controller gets access to other Spring singleton services such as
> > > > > userService as in your simple app.
> > > >
> > > > my app is the first draft. I zipped it for you because of your issues
> > > > with the filter.
> > > > I'll work on that app and release it on google code in jan or feb
> > > > depends on spare time).
> > > >
> > > > -M
> > > >
> > > > > Regards
> > > > >
> > > > >
> > > > >
> > > > > > On 12/24/06, Duong BaTien <du...@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
> > > > > > >
> > > > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


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

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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
On Wed, 2006-12-27 at 21:34 +0100, Matthias Wessendorf wrote:
> Hi Duong,
> 
> regarding the <h:commandButton .../> that has been fixed last week in trunk.
> I fixed a small thing to render something like <h:commandButton
> value="Click me" ... /> as expected.
> 
> You are using one of the stable-NAME_OF_A_MONTH-branch, isn't it ?
> 
> -M

Yes, thanks. Will take a look at it in stable Jan. Love to see your work
on facelets and YUI.

BaTien
 
> 
> On 12/26/06, Duong BaTien <du...@gmail.com> wrote:
> > Hello Matthias:
> >
> > With regard to issue with TrinidadFilter, i think it is more complex
> > than expected and i will experiment with it sometime while going ahead
> > to learn other trinidad components.
> >
> > As previously reported, i used facelets NumberBean as a starting point.
> > The warning of the issue does not appear under both cases: (1) the use
> > of o.a.myfaces.trinidad.core as <default-render-kit-id> has problem to
> > render <h:command> button (2) without o.a.m.trinidad.core, the
> > NumberBean run as expected. When the application becomes a little more
> > involved with trinidad dialog and fileupload, the warning appears. I
> > appreciate some more insight into this issue while looking for more time
> > to dig a little deeper into it. I have 2 applications demonstrated the
> > issue that i will share with those who want to take a shot at it.
> >
> > I love to see your custom facelets page component with YUI. Is that
> > similar to the YUI template page or the page with some out-of-the-box
> > YUI components recently released?
> >
> > Thanks.
> >
> >
> >
> >
> > On Tue, 2006-12-26 at 14:37 +0100, Matthias Wessendorf wrote:
> > > > Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
> > > > parts up in the front of faces-config and web.xml, so now i can replace
> > > > some of my components with those from trinidad.
> > >
> > > so, no more warnings ?
> > >
> > > > I am interested in recommended choices of YUI and trinidad components as
> > > > more will be available in YUI and more jsf parts donated by Oracle. Adam
> > > > can give some hint here :-)
> > >
> > > Yes, Yahoo UI is really nice. With facelets, you can put together a cool design.
> > > Did you see my custom facelets page component ?
> > >
> > >
> > > > My design is very similar to yours except user bean is in user session
> > > > with guest profile if user is not locked in, and i have only 1 request
> > > > scope view controller that also contain trinidad requestContext so you
> > > > can leverage the best of both world: Shales and Trinidad. The view
> > > > controller gets access to other Spring singleton services such as
> > > > userService as in your simple app.
> > >
> > > my app is the first draft. I zipped it for you because of your issues
> > > with the filter.
> > > I'll work on that app and release it on google code in jan or feb
> > > depends on spare time).
> > >
> > > -M
> > >
> > > > Regards
> > > >
> > > >
> > > >
> > > > > On 12/24/06, Duong BaTien <du...@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
> > > > > >
> > > > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
Hi Duong,

regarding the <h:commandButton .../> that has been fixed last week in trunk.
I fixed a small thing to render something like <h:commandButton
value="Click me" ... /> as expected.

You are using one of the stable-NAME_OF_A_MONTH-branch, isn't it ?

-M

On 12/26/06, Duong BaTien <du...@gmail.com> wrote:
> Hello Matthias:
>
> With regard to issue with TrinidadFilter, i think it is more complex
> than expected and i will experiment with it sometime while going ahead
> to learn other trinidad components.
>
> As previously reported, i used facelets NumberBean as a starting point.
> The warning of the issue does not appear under both cases: (1) the use
> of o.a.myfaces.trinidad.core as <default-render-kit-id> has problem to
> render <h:command> button (2) without o.a.m.trinidad.core, the
> NumberBean run as expected. When the application becomes a little more
> involved with trinidad dialog and fileupload, the warning appears. I
> appreciate some more insight into this issue while looking for more time
> to dig a little deeper into it. I have 2 applications demonstrated the
> issue that i will share with those who want to take a shot at it.
>
> I love to see your custom facelets page component with YUI. Is that
> similar to the YUI template page or the page with some out-of-the-box
> YUI components recently released?
>
> Thanks.
>
>
>
>
> On Tue, 2006-12-26 at 14:37 +0100, Matthias Wessendorf wrote:
> > > Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
> > > parts up in the front of faces-config and web.xml, so now i can replace
> > > some of my components with those from trinidad.
> >
> > so, no more warnings ?
> >
> > > I am interested in recommended choices of YUI and trinidad components as
> > > more will be available in YUI and more jsf parts donated by Oracle. Adam
> > > can give some hint here :-)
> >
> > Yes, Yahoo UI is really nice. With facelets, you can put together a cool design.
> > Did you see my custom facelets page component ?
> >
> >
> > > My design is very similar to yours except user bean is in user session
> > > with guest profile if user is not locked in, and i have only 1 request
> > > scope view controller that also contain trinidad requestContext so you
> > > can leverage the best of both world: Shales and Trinidad. The view
> > > controller gets access to other Spring singleton services such as
> > > userService as in your simple app.
> >
> > my app is the first draft. I zipped it for you because of your issues
> > with the filter.
> > I'll work on that app and release it on google code in jan or feb
> > depends on spare time).
> >
> > -M
> >
> > > Regards
> > >
> > >
> > >
> > > > On 12/24/06, Duong BaTien <du...@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
> > > > >
> > > > > >
> > >
> > >
> > >
> >
> >
>
>


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

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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
Hello Matthias:

With regard to issue with TrinidadFilter, i think it is more complex
than expected and i will experiment with it sometime while going ahead
to learn other trinidad components.

As previously reported, i used facelets NumberBean as a starting point.
The warning of the issue does not appear under both cases: (1) the use
of o.a.myfaces.trinidad.core as <default-render-kit-id> has problem to
render <h:command> button (2) without o.a.m.trinidad.core, the
NumberBean run as expected. When the application becomes a little more
involved with trinidad dialog and fileupload, the warning appears. I
appreciate some more insight into this issue while looking for more time
to dig a little deeper into it. I have 2 applications demonstrated the
issue that i will share with those who want to take a shot at it.

I love to see your custom facelets page component with YUI. Is that
similar to the YUI template page or the page with some out-of-the-box
YUI components recently released?

Thanks.
 

 

On Tue, 2006-12-26 at 14:37 +0100, Matthias Wessendorf wrote:
> > Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
> > parts up in the front of faces-config and web.xml, so now i can replace
> > some of my components with those from trinidad.
> 
> so, no more warnings ?
> 
> > I am interested in recommended choices of YUI and trinidad components as
> > more will be available in YUI and more jsf parts donated by Oracle. Adam
> > can give some hint here :-)
> 
> Yes, Yahoo UI is really nice. With facelets, you can put together a cool design.
> Did you see my custom facelets page component ?
> 
> 
> > My design is very similar to yours except user bean is in user session
> > with guest profile if user is not locked in, and i have only 1 request
> > scope view controller that also contain trinidad requestContext so you
> > can leverage the best of both world: Shales and Trinidad. The view
> > controller gets access to other Spring singleton services such as
> > userService as in your simple app.
> 
> my app is the first draft. I zipped it for you because of your issues
> with the filter.
> I'll work on that app and release it on google code in jan or feb
> depends on spare time).
> 
> -M
> 
> > Regards
> >
> >
> >
> > > On 12/24/06, Duong BaTien <du...@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
> > > >
> > > > >
> >
> >
> >
> 
> 


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
> Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
> parts up in the front of faces-config and web.xml, so now i can replace
> some of my components with those from trinidad.

so, no more warnings ?

> I am interested in recommended choices of YUI and trinidad components as
> more will be available in YUI and more jsf parts donated by Oracle. Adam
> can give some hint here :-)

Yes, Yahoo UI is really nice. With facelets, you can put together a cool design.
Did you see my custom facelets page component ?


> My design is very similar to yours except user bean is in user session
> with guest profile if user is not locked in, and i have only 1 request
> scope view controller that also contain trinidad requestContext so you
> can leverage the best of both world: Shales and Trinidad. The view
> controller gets access to other Spring singleton services such as
> userService as in your simple app.

my app is the first draft. I zipped it for you because of your issues
with the filter.
I'll work on that app and release it on google code in jan or feb
depends on spare time).

-M

> Regards
>
>
>
> > On 12/24/06, Duong BaTien <du...@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
> > >
> > > >
>
>
>


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

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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
On Mon, 2006-12-25 at 10:17 +0100, Matthias Wessendorf wrote:
> 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
> 

Hope you and Adam had a Merry Christmas. It looks ok if i put trinidad
parts up in the front of faces-config and web.xml, so now i can replace
some of my components with those from trinidad.

I am interested in recommended choices of YUI and trinidad components as
more will be available in YUI and more jsf parts donated by Oracle. Adam
can give some hint here :-) 

My design is very similar to yours except user bean is in user session
with guest profile if user is not locked in, and i have only 1 request
scope view controller that also contain trinidad requestContext so you
can leverage the best of both world: Shales and Trinidad. The view
controller gets access to other Spring singleton services such as
userService as in your simple app.

Regards



> On 12/24/06, Duong BaTien <du...@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
> >
> > >



Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
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 <du...@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 <du...@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 <du...@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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
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 <du...@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 <du...@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
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> 
> 


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
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

On 12/22/06, Duong BaTien <du...@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 <du...@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

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
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 <du...@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
> > >
> > >
> > >
> > 
> > 


Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
Thanks Adam. Do you see any issue for Servlet 2.4 in TC 5.5.x or should
i wait for TC 6?

I am building from the ground up starting with numberGuest of facelets
1.1.12 and Trinidad stable 06-dec with myfaces 1.1.5.

BaTien

On Fri, 2006-12-22 at 17:23 -0800, Adam Winer wrote:
> On 12/22/06, Duong BaTien <du...@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?
> 
> I can't speak for Myfaces, but Trinidad has a JSF 1.2 branch
> that I've been actively developing and works well at least
> against Sun's Glassfish server.
> 
> -- Adam


Re: TrinidadFilter has not been installed

Posted by Adam Winer <aw...@gmail.com>.
On 12/22/06, Duong BaTien <du...@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?

I can't speak for Myfaces, but Trinidad has a JSF 1.2 branch
that I've been actively developing and works well at least
against Sun's Glassfish server.

-- Adam

Re: TrinidadFilter has not been installed

Posted by Duong BaTien <du...@gmail.com>.
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 <du...@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
> >
> >
> >
> 
> 


Re: TrinidadFilter has not been installed

Posted by Matthias Wessendorf <ma...@apache.org>.
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)


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 <du...@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