Hi Andrew,

I tried your web.xml, but it still does not work.
My long-running conversation did not get restored and therefore I can't
access injected variables which were former outjected.

Did you define the SeamPhaseListener in faces-config.xml?

        <lifecycle>
        
<phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
        </lifecycle>

As soon as I enable the SeamPhaseListener, I get a warning:

12:08:38,544 WARN  [SeamPhaseListener] There should only be one Seam phase
listener per application

and if I request a web page I get an exception:

12:09:05,012 ERROR [SeamPhaseListener] uncaught exception
java.lang.IllegalStateException: No phase id bound to current thread (make
sure you do not have two SeamPhaseListener instances installed)

I think I could not enable SeamPhaseListerner. But something is wrong with
the internal phase listerner, because the conversations won't be restored.
Only I add my custom phase listener which do the job.

In the meanwhile I tiead the JBoss Seam 2.1.0-SNAPSHOT too - without
success.

Any ideas?

--
Kind regards,
Mathias

> -----Original Message-----
> From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, June 14, 2008 4:32 PM
> To: Matthias Wessendorf
> Cc: MyFaces Discussion
> Subject: Re: [Trinidad] and Jboss Seam
> 
> 
> I read the email, but have nothing to add. When I used Seam and
> Trinidad, PPR worked just fine out of the box (Seam 2.0.1 and Trinidad
> 1.2.7 I believe). Have you made sure your filters are in the correct
> order?
> 
> Here was my web.xml:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app
>   version="2.5"
>   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";>
>   <display-name>test-web</display-name>
>   <context-param>
>     
> <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</p
> aram-name>
>     <param-value>all</param-value>
>   </context-param>
>   <context-param>
>     
> <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
>     <param-value>false</param-value>
>   </context-param>
>   <context-param>
>     
> <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_C
> ACHE</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>
>   <context-param>
>     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>     <param-value>client</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>org.apache.myfaces.trinidad.DEBUG_JAVASCRIPT</param-name>
>     <param-value>true</param-value>
>   </context-param>
>   <context-param>
>     
> <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRE
> SSION</param-name>
>     <param-value>true</param-value>
>   </context-param>
>   <context-param>
>     
> <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIA
> LOGS</param-name>
>     <param-value>true</param-value>
>   </context-param>
>   <context-param>
>     <param-name>facelets.LIBRARIES</param-name>
>     <param-value>
>       /WEB-INF/tomahawk.taglib.xml;
>       /WEB-INF/tomahawk-sandbox.taglib.xml
>     </param-value>
>   </context-param>
>   <context-param>
>     <param-name>facelets.SKIP_COMMENTS</param-name>
>     <param-value>true</param-value>
>   </context-param>
>   <context-param>
>     <param-name>facelets.DEVELOPMENT</param-name>
>     <param-value>true</param-value>
>   </context-param>
>   <filter>
>     <filter-name>trinidad</filter-name>
>     
> <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilte
> r</filter-class>
>   </filter>
>   <filter-mapping>
>     <filter-name>trinidad</filter-name>
>     <servlet-name>Faces Servlet</servlet-name>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>   </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>
>     <servlet-name>Faces Servlet</servlet-name>
>     <url-pattern>/*</url-pattern>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>   </filter-mapping>
>   <filter>
>     <filter-name>MyFacesExtensionsFilter</filter-name>
>     
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilte
> r</filter-class>
>     <init-param>
>       <description>
>         Set the size limit for uploaded files. Format: 10 - 10 bytes
> 10k - 10 KB 10m - 10 MB 1g - 1 GB
>       </description>
>       <param-name>maxFileSize</param-name>
>       <param-value>20m</param-value>
>     </init-param>
>   </filter>
>   <filter-mapping>
>     <filter-name>MyFacesExtensionsFilter</filter-name>
>     <servlet-name>Faces Servlet</servlet-name>
>     <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>     <dispatcher>REQUEST</dispatcher>
>     <dispatcher>FORWARD</dispatcher>
>     <dispatcher>INCLUDE</dispatcher>
>   </filter-mapping>
>   <servlet>
>     <servlet-name>Trinidad Resources</servlet-name>
>     
> <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServ
> let</servlet-class>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>Trinidad Resources</servlet-name>
>     <url-pattern>/adf/*</url-pattern>
>   </servlet-mapping>
>   <servlet>
>     <servlet-name>Seam Resource Servlet</servlet-name>
>     
> <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>Seam Resource Servlet</servlet-name>
>     <url-pattern>/seam/resource/*</url-pattern>
>   </servlet-mapping>
>   <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>*.jsf</url-pattern>
>   </servlet-mapping>
>   <listener>
>     
> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
>   </listener>
>   <session-config>
>     <session-timeout>30</session-timeout>
>   </session-config>
>   <welcome-file-list>
>     <welcome-file>index.jsf</welcome-file>
>   </welcome-file-list>
> </web-app>
> 
> 
> 
> 
> On Fri, Jun 13, 2008 at 8:12 PM, Matthias Wessendorf 
> <[EMAIL PROTECTED]> wrote:
> > Hi Mathias,
> >
> > perhaps Andrew knows more?
> > I think he did project w/ seam and trinidad
> >
> > -Matthias
> >
> > On Fri, Jun 13, 2008 at 6:16 AM, Mathias Walter 
> <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> I'm trying to use Trinidad (1.2.8) PPR with Seam 
> 2.0.2.SP1. I could not get
> >> it to work.
> >>
> >> Every time, I navigate with either tr:commandLink or 
> tr:commandButton and
> >> patrialSubmit=true, the conversation is not restored.
> >> Even if I use s:conversationId or 
> s:conversationPropagation or <f:param
> >> name="conversationPropagation" value="join"/> inside a 
> tr:commandLink.
> >> Of course I started a new long-running conversation 
> before, but I could not
> >> join to this conversation. The debug.seam page does not list any
> >> long-running conversations.
> >>
> >> I've read some posts that there are no incompatibilities 
> between Trinidad
> >> and Seam, except the lightweight dialogs. That seems not 
> true to me.
> >>
> >> Did some got the partialSubmit working with Seam? What's the trick?
> >>
> >> I also tried to add SeamPhaseListener in the 
> faces-config.xml, but then I
> >> got an error regarding to duplicate listeners.
> >>
> >> --
> >> Kind regards,
> >> Mathias
> >>
> >>
> >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://matthiaswessendorf.wordpress.com/
> > sessions: http://www.slideshare.net/mwessendorf
> > mail: matzew-at-apache-dot-org
> >

Reply via email to