myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Re: Antwort: Re: [Trinidad] Basic Trinidad 1.2.7 incompatibility with Seam!
Date Wed, 19 Mar 2008 16:51:18 GMT
Well crap, I don't see any problems here.

My main difference, which I don't think is important is I registered
the filters like this:

  <filter-mapping>
    <filter-name>Seam Filter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>

The one thing that is interesting is that you are trying to use a Seam
managed bean from a Trinidad resource. I have never done that. Seam is
pretty picky about its environment, so I have a feeling it does not
like the environment that Trinidad is setting up to serve resources
from. I can't say much more without debugging through you code, so you
will probably need to. Make sure you debug through the Seam code and
try to determine the difference from a JSF request to a Trinidad
resource request.

-Andrew

On Wed, Mar 19, 2008 at 9:56 AM,  <wolfgang.toepfer@pta.de> wrote:
>
> Hi,
>
> we use the same versions as you do.
>
> I already debugged a bit into the issue but I could not make much sense of
> it.
>
> So here's the files which have not been changed from 1.2.5 to 1.2.7.
>
> Thanks so much in advance!
>
> faces-config:
> =============
>
> <?xml version='1.0' encoding='UTF-8'?>
> <faces-config version="1.2"
>               xmlns="http://java.sun.com/xml/ns/javaee"
>               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
>
>    <application>
>              <locale-config>
>              <default-locale>de</default-locale>
>              <supported-locale>en</supported-locale>
>           </locale-config>
>       <!-- Enable Trinidad renderkit -->
>
> <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
>    </application>
>
>         <lifecycle>
>
> <phase-listener>de.pta.test.ctrl.EmrMsgPhaseListener</phase-listener>
>
> <phase-listener>de.pta.servlet.EmrPhaseListener</phase-listener>
>          </lifecycle>
>
> </faces-config>
>
> //////////////////
>
> web.xml
> ========
>
> <?xml version="1.0" ?>
> <web-app xmlns="http://java.sun.com/xml/ns/javaee"
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>         version="2.5">
>
>         <listener>
>                 <listener-class>
>                         de.pta.servlet.EmrSessionListener
>                 </listener-class>
>         </listener>
>
>         <!-- Seam -->
>         <listener>
>                 <listener-class>
>                         org.jboss.seam.servlet.SeamListener
>                 </listener-class>
>         </listener>
>
>         <servlet>
>                 <servlet-name>Seam Resource Servlet</servlet-name>
>                 <servlet-class>
>                         org.jboss.seam.servlet.SeamResourceServlet
>                 </servlet-class>
>         </servlet>
>
>         <servlet-mapping>
>                 <servlet-name>Seam Resource Servlet</servlet-name>
>                 <url-pattern>/seam/resource/*</url-pattern>
>         </servlet-mapping>
>
>         <!-- Facelets development mode (disable in production) -->
>         <context-param>
>                 <param-name>facelets.DEVELOPMENT</param-name>
>                 <param-value>true</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>facelets.SKIP_COMMENTS</param-name>
>                 <param-value>true</param-value>
>         </context-param>
>
>         <!-- JSF -->
>         <context-param>
>                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
>                 <param-value>.xhtml</param-value>
>         </context-param>
>
>         <servlet>
>                 <servlet-name>Faces Servlet</servlet-name>
>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>                 <load-on-startup>1</load-on-startup>
>         </servlet>
>
>         <servlet-mapping>
>                 <servlet-name>Faces Servlet</servlet-name>
>                 <url-pattern>*.seam</url-pattern>
>         </servlet-mapping>
>
>         <!-- Trinidad -->
>         <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>
>
> org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS
>                 </param-name>
>                 <param-value>true</param-value>
>         </context-param>
>
>         <!--  switch to false for better performance -->
>         <context-param>
>                 <param-name>
>
> org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
>                 </param-name>
>                 <param-value>true</param-value>
>         </context-param>
>
>         <context-param>
>                 <param-name>
>                         org.apache.myfaces.trinidad.CACHE_VIEW_ROOT
>                 </param-name>
>                 <param-value>false</param-value>
>         </context-param>
>
>         <filter>
>                 <filter-name>HttpSessionTimeoutFilter</filter-name>
>                 <filter-class>
>                         de.pta.servlet.HttpSessionTimeoutFilter
>                 </filter-class>
>         </filter>
>
>         <filter-mapping>
>                 <filter-name>HttpSessionTimeoutFilter</filter-name>
>                 <url-pattern>*.seam</url-pattern>
>         </filter-mapping>
>
>         <filter>
>                 <filter-name>trinidad</filter-name>
>                 <filter-class>
>                         org.apache.myfaces.trinidad.webapp.TrinidadFilter
>                 </filter-class>
>         </filter>
>
>         <filter-mapping>
>                 <filter-name>trinidad</filter-name>
>                 <url-pattern>*.seam</url-pattern>
>         </filter-mapping>
>
>         <filter>
>                 <filter-name>Seam Filter</filter-name>
>
> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
>         </filter>
>
>         <filter-mapping>
>                 <filter-name>Seam Filter</filter-name>
>                 <url-pattern>/*</url-pattern>
>         </filter-mapping>
>
>         <servlet>
>                 <servlet-name>Trinidad Resources</servlet-name>
>                 <servlet-class>
>                         org.apache.myfaces.trinidad.webapp.ResourceServlet
>                 </servlet-class>
>         </servlet>
>
>         <servlet-mapping>
>                 <servlet-name>Trinidad Resources</servlet-name>
>                 <url-pattern>/adf/*</url-pattern>
>         </servlet-mapping>
>
>         <session-config>
>                 <session-timeout>20</session-timeout>
>         </session-config>
>
>         <security-constraint>
>                 <display-name>Restrict raw XHTML Documents</display-name>
>                 <web-resource-collection>
>                         <web-resource-name>XHTML</web-resource-name>
>                         <url-pattern>*.xhtml</url-pattern>
>                 </web-resource-collection>
>                 <auth-constraint />
>         </security-constraint>
>
> </web-app>

Mime
View raw message