You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mathias Walter <do...@jboss.com> on 2008/06/13 11:13:14 UTC

[Trinidad] s:link in Trinidad table

Hi, 

this question is related to JBoss Seam and Apache Trinidad. It's maybe a
problem with one of the frameworks. If anyone had the same or a similar
problem (maybe configuration), it would be great to know a solution.

I'm trying to use s:link in a tr:column of a trinidad tr:table.
Unfortunatelly, the link would not be rendered as if it is inside a h:column
of a h:dataTable.

Example: 

<h:dataTable value="#{patients}" var="pat">
        <h:column>
                <f:facet name="header">Aktionen</f:facet>
                <s:link id="viewPatient" value="Details"
action="#{patientManager.details(pat)}"/>
        </h:column>
</h:dataTable>

The link url is rendered as 
http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general/P
atients.xhtml:patientManager.details(pat)&cid=3&dataModelSelection=pat:patie
nts[0]
Whereas: 

<tr:table value="#{patients}" var="pat">
        <tr:column headerText="Aktionen">
                <s:link id="viewPatient" value="Details"
action="#{patientManager.details(pat)}"/>
        </tr:column>
</tr:table>

results in: 
http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general/P
atients.xhtml:patientManager.details(pat)&cid=3

As you can see, the dataModelSelection parameter is missing and therefore
"pat" is null.

I've set up <web:context-filter url-pattern="/adf/*"/> in the components.xml
already. 

How can I use s:link in a tr:table or achive the same (transfer of pat into
the managed bean)? 

--
Kind regards,
Mathias


Re: [Trinidad] s:link in Trinidad table

Posted by Andrew Robinson <an...@gmail.com>.
I have found it better myself to use <s:conversationPropagation> an
other non-rendered tags instead of the ones that produce HTML. This
way you can let the Trinidad code properly render components in your
selected render kit. You also will be able to use PPR.

On Fri, Jun 13, 2008 at 3:13 AM, Mathias Walter <do...@jboss.com> wrote:
> Hi,
>
> this question is related to JBoss Seam and Apache Trinidad. It's maybe a
> problem with one of the frameworks. If anyone had the same or a similar
> problem (maybe configuration), it would be great to know a solution.
>
> I'm trying to use s:link in a tr:column of a trinidad tr:table.
> Unfortunatelly, the link would not be rendered as if it is inside a h:column
> of a h:dataTable.
>
> Example:
>
> <h:dataTable value="#{patients}" var="pat">
>        <h:column>
>                <f:facet name="header">Aktionen</f:facet>
>                <s:link id="viewPatient" value="Details"
> action="#{patientManager.details(pat)}"/>
>        </h:column>
> </h:dataTable>
>
> The link url is rendered as
> http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general/P
> atients.xhtml:patientManager.details(pat)&cid=3&dataModelSelection=pat:patie
> nts[0]
> Whereas:
>
> <tr:table value="#{patients}" var="pat">
>        <tr:column headerText="Aktionen">
>                <s:link id="viewPatient" value="Details"
> action="#{patientManager.details(pat)}"/>
>        </tr:column>
> </tr:table>
>
> results in:
> http://localhost:8080/PatientWeb/general/Patients.jsf?actionMethod=general/P
> atients.xhtml:patientManager.details(pat)&cid=3
>
> As you can see, the dataModelSelection parameter is missing and therefore
> "pat" is null.
>
> I've set up <web:context-filter url-pattern="/adf/*"/> in the components.xml
> already.
>
> How can I use s:link in a tr:table or achive the same (transfer of pat into
> the managed bean)?
>
> --
> Kind regards,
> Mathias
>
>

Re: [Trinidad] and Jboss Seam

Posted by Andrew Robinson <an...@gmail.com>.
To be honest, I don't recall. On Seam 1.x I always used the
annotations, on the project that I abandoned that was on 2.x, I was
using the tags. What are you getting in the logs when you only have
@Begin on your action method (it is on the action method, not a
listener or method deeper in the stack right?)?

-Andrew

On Mon, Jun 16, 2008 at 1:50 PM, Mathias Walter <ma...@gmx.net> wrote:
> Hi Andrew,
>
> did you always use <s:conversationPropagation type="join"/> or did you use
> the @Begin(join=true) annotation?
> If I use both and one page before my conversation page, it works.
>
> I was wondering why I could not use the @Begin annotation only.
>
> --
> Kind regards,
> Mathias
>
>> -----Original Message-----
>> From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
>> Sent: Monday, June 16, 2008 2:57 PM
>> To: MyFaces Discussion
>> Subject: Re: [Trinidad] and Jboss Seam
>>
>>
>> You should not have any seam stuff in your faces-config, it auto
>> registers itself. My faces-config.xml:
>>
>> <?xml version="1.0"?>
>> <!DOCTYPE faces-config PUBLIC
>>   "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
>>   "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
>>
>> <faces-config xmlns="http://java.sun.com/JSF/Configuration" >
>>   <application>
>>
>> <default-render-kit-id>org.apache.myfaces.trinidad.core</defau
>> lt-render-kit-id>
>>   </application>
>> </faces-config>
>>
>> Another thing to do is debug through Manager.java and
>> Conversation.java (or is it Conversations.java, I forget) and debug
>> the code that checks for a conversation.
>>
>> Also logging really helped me:
>>
>> Here is some of my log4j.xml:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
>>
>> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
>> debug="false">
>>
>>   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>>     <param name="Target" value="System.out"/>
>>
>>     <layout class="org.apache.log4j.PatternLayout">
>>       <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p
>> [%c{1}] %m%n"/>
>>     </layout>
>>   </appender>
>>
>>   <!--
>>   <category name="org.hibernate">
>>     <priority value="DEBUG"/>
>>   </category>
>>   -->
>>
>>   <!--
>>   <category name="org.jboss.seam">
>>     <priority value="DEBUG"/>
>>   </category>
>>   -->
>>
>>   <category name="org.jboss.seam.jsf.AbstractSeamPhaseListener">
>>     <priority value="FATAL"/>
>>   </category>
>>
>>   <category
>> name="org.apache.myfaces.trinidadinternal.application.Navigati
>> onHandlerImpl">
>>     <priority value="DEBUG"/>
>>   </category>
>>
>>   <category
>> name="org.apache.myfaces.application.NavigationHandlerImpl">
>>     <priority value="DEBUG"/>
>>   </category>
>>
>>   <category name="org.jboss.seam.core.Pages">
>>     <priority value="TRACE"/>
>>   </category>
>>
>>   <category name="org.jboss.seam.core.Manager">
>>     <priority value="TRACE" />
>>   </category>
>>
>>   <root>
>>     <priority value="INFO"/>
>>     <appender-ref ref="CONSOLE"/>
>>   </root>
>>
>> </log4j:configuration>
>>
>>
>>
>> On Mon, Jun 16, 2008 at 4:15 AM, Mathias Walter
>> <ma...@gmx.net> wrote:
>> > 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:andrew.rw.robinson@gmail.com]
>> >> 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
>> >> <ma...@apache.org> 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
>> >> <ma...@gmx.net> 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
>> >> >
>> >
>> >
>
>

RE: [Trinidad] and Jboss Seam

Posted by Mathias Walter <ma...@gmx.net>.
Hi Andrew,

did you always use <s:conversationPropagation type="join"/> or did you use
the @Begin(join=true) annotation?
If I use both and one page before my conversation page, it works.

I was wondering why I could not use the @Begin annotation only.

--
Kind regards,
Mathias

> -----Original Message-----
> From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com] 
> Sent: Monday, June 16, 2008 2:57 PM
> To: MyFaces Discussion
> Subject: Re: [Trinidad] and Jboss Seam
> 
> 
> You should not have any seam stuff in your faces-config, it auto
> registers itself. My faces-config.xml:
> 
> <?xml version="1.0"?>
> <!DOCTYPE faces-config PUBLIC
>   "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
>   "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
> 
> <faces-config xmlns="http://java.sun.com/JSF/Configuration" >
>   <application>
>     
> <default-render-kit-id>org.apache.myfaces.trinidad.core</defau
> lt-render-kit-id>
>   </application>
> </faces-config>
> 
> Another thing to do is debug through Manager.java and
> Conversation.java (or is it Conversations.java, I forget) and debug
> the code that checks for a conversation.
> 
> Also logging really helped me:
> 
> Here is some of my log4j.xml:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
> debug="false">
> 
>   <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>     <param name="Target" value="System.out"/>
> 
>     <layout class="org.apache.log4j.PatternLayout">
>       <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p
> [%c{1}] %m%n"/>
>     </layout>
>   </appender>
> 
>   <!--
>   <category name="org.hibernate">
>     <priority value="DEBUG"/>
>   </category>
>   -->
> 
>   <!--
>   <category name="org.jboss.seam">
>     <priority value="DEBUG"/>
>   </category>
>   -->
> 
>   <category name="org.jboss.seam.jsf.AbstractSeamPhaseListener">
>     <priority value="FATAL"/>
>   </category>
> 
>   <category 
> name="org.apache.myfaces.trinidadinternal.application.Navigati
> onHandlerImpl">
>     <priority value="DEBUG"/>
>   </category>
> 
>   <category 
> name="org.apache.myfaces.application.NavigationHandlerImpl">
>     <priority value="DEBUG"/>
>   </category>
> 
>   <category name="org.jboss.seam.core.Pages">
>     <priority value="TRACE"/>
>   </category>
> 
>   <category name="org.jboss.seam.core.Manager">
>     <priority value="TRACE" />
>   </category>
> 
>   <root>
>     <priority value="INFO"/>
>     <appender-ref ref="CONSOLE"/>
>   </root>
> 
> </log4j:configuration>
> 
> 
> 
> On Mon, Jun 16, 2008 at 4:15 AM, Mathias Walter 
> <ma...@gmx.net> wrote:
> > 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:andrew.rw.robinson@gmail.com]
> >> 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
> >> <ma...@apache.org> 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
> >> <ma...@gmx.net> 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
> >> >
> >
> >


Re: [Trinidad] and Jboss Seam

Posted by Andrew Robinson <an...@gmail.com>.
You should not have any seam stuff in your faces-config, it auto
registers itself. My faces-config.xml:

<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config xmlns="http://java.sun.com/JSF/Configuration" >
  <application>
    <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
  </application>
</faces-config>

Another thing to do is debug through Manager.java and
Conversation.java (or is it Conversations.java, I forget) and debug
the code that checks for a conversation.

Also logging really helped me:

Here is some of my log4j.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">

  <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
    <param name="Target" value="System.out"/>

    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p
[%c{1}] %m%n"/>
    </layout>
  </appender>

  <!--
  <category name="org.hibernate">
    <priority value="DEBUG"/>
  </category>
  -->

  <!--
  <category name="org.jboss.seam">
    <priority value="DEBUG"/>
  </category>
  -->

  <category name="org.jboss.seam.jsf.AbstractSeamPhaseListener">
    <priority value="FATAL"/>
  </category>

  <category name="org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl">
    <priority value="DEBUG"/>
  </category>

  <category name="org.apache.myfaces.application.NavigationHandlerImpl">
    <priority value="DEBUG"/>
  </category>

  <category name="org.jboss.seam.core.Pages">
    <priority value="TRACE"/>
  </category>

  <category name="org.jboss.seam.core.Manager">
    <priority value="TRACE" />
  </category>

  <root>
    <priority value="INFO"/>
    <appender-ref ref="CONSOLE"/>
  </root>

</log4j:configuration>



On Mon, Jun 16, 2008 at 4:15 AM, Mathias Walter <ma...@gmx.net> wrote:
> 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:andrew.rw.robinson@gmail.com]
>> 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
>> <ma...@apache.org> 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
>> <ma...@gmx.net> 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
>> >
>
>

RE: [Trinidad] and Jboss Seam

Posted by Mathias Walter <ma...@gmx.net>.
Hi again,

I've also tried it with Trinidad 1.2.7 without luck.

--
Regards,
Mathias

> -----Original Message-----
> From: Mathias Walter [mailto:mathias.walter@gmx.net] 
> Sent: Monday, June 16, 2008 12:15 PM
> To: 'MyFaces Discussion'
> Subject: RE: [Trinidad] and Jboss Seam
> 
> 
> 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:andrew.rw.robinson@gmail.com] 
> > 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 
> > <ma...@apache.org> 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 
> > <ma...@gmx.net> 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
> > >


RE: [Trinidad] and Jboss Seam

Posted by Mathias Walter <ma...@gmx.net>.
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:andrew.rw.robinson@gmail.com] 
> 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 
> <ma...@apache.org> 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 
> <ma...@gmx.net> 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
> >


Re: [Trinidad] and Jboss Seam

Posted by Andrew Robinson <an...@gmail.com>.
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</param-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_CACHE</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_COMPRESSION</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</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.TrinidadFilter</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.ExtensionsFilter</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.ResourceServlet</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 <ma...@apache.org> 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 <ma...@gmx.net> 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
>

Re: [Trinidad] and Jboss Seam

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

RE: [Trinidad] and Jboss Seam

Posted by Mathias Walter <ma...@gmx.net>.
Hi,

I've implemented the custom phase listerner and custom action listener
created by Brian Smith (http://jira.jboss.com/jira/browse/JBSEAM-1289), but
removed the limitation for dialogs. Now it works as expected - for the
moment. Hopefully, there are no side effects.

I was wondering why nobody run into the same issue and why I could find any
information about that in the web.

Is there any other solution?

--
Kind regards,
Mathias

> -----Original Message-----
> From: Mathias Walter [mailto:mathias.walter@gmx.net] 
> Sent: Friday, June 13, 2008 3:17 PM
> To: 'MyFaces Discussion'
> Subject: RE: [Trinidad] and Jboss Seam
> 
> 
> 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


RE: [Trinidad] and Jboss Seam

Posted by Mathias Walter <ma...@gmx.net>.
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