[jboss-user] [JBoss Seam] - Re: seam + ajax4jsf + facelets

cayo do-not-reply at jboss.com
Tue Sep 12 05:10:28 EDT 2006


hello tobad,
the configuration as described above works fine, but I have no conversation propagation anymore after changing my web.xml like that.

Do you have the same problem, or even a hint for me? this is my web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.4"
    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">

    <!-- Seam -->

    
        <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
    

    <!-- Propagate conversations across redirects -->
    
        <filter-name>Seam Redirect Filter</filter-name>
        <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
    
	
	<filter-mapping>
        <filter-name>Seam Redirect Filter</filter-name>
        <url-pattern>*.seam</url-pattern>
    </filter-mapping>
	

	<!-- JSF MyFaces -->
	
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
	

	<filter-mapping>
	    <filter-name>MyFacesExtensionsFilter</filter-name>
	    <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
	    <servlet-name>Faces Servlet</servlet-name>
	</filter-mapping>

	<filter-mapping>
	    <filter-name>MyFacesExtensionsFilter</filter-name>
	    <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>

    <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>facelets.DEVELOPMENT</param-name>
        <param-value>true</param-value>
    </context-param>

	<!-- Faces Servlet Mapping -->
    
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    

    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.seam</url-pattern>
    </servlet-mapping>
	
	
        <servlet-name>Seam Remoting</servlet-name>
        <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
    

    <servlet-mapping>
        <servlet-name>Seam Remoting</servlet-name>
        <url-pattern>/seam/remoting/*</url-pattern>
    </servlet-mapping>

    <!-- MyFaces -->
    
        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    
	
	<context-param>
        <param-name>facelets.LIBRARIES</param-name>
        <param-value>/WEB-INF/tomahawk.taglib.xml; /WEB-INF/rossmann.taglib.xml</param-value>
    </context-param>

	<!-- projects own servlet -->
	
		<servlet-name>MonitorServlet</servlet-name>
		<servlet-class>de.rossmann.productlisting.servlet.ShowMonitorServlet</servlet-class>
		<load-on-startup>2</load-on-startup>
	

	<servlet-mapping>
		<servlet-name>MonitorServlet</servlet-name>
		<url-pattern>*.jpeg</url-pattern>
	</servlet-mapping>
	
	<!-- Ajax4JSF Initial parameters -->
    
        <display-name>Ajax4jsf Filter</display-name>
        <filter-name>ajax4jsf</filter-name>
        <filter-class>org.ajax4jsf.framework.ajax.xmlfilter.NekkoFilter</filter-class>
        <init-param>
            <param-name>forceparser</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>enable-cache</param-name>
            <param-value>false</param-value>
        </init-param>
    
    <filter-mapping>
        <filter-name>ajax4jsf</filter-name>
        <url-pattern>*.seam</url-pattern>
    </filter-mapping>

    <context-param>
        <param-name>org.ajax4jsf.SKIN</param-name>
        <param-value>DEFAULT</param-value>
    </context-param>

    <context-param>
        <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
        <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    </context-param>
	
	
	<session-config>
    	<session-timeout>600</session-timeout>
    </session-config>

    <error-page>
   		<exception-type>
   		    javax.servlet.ServletException
   		</exception-type>
    	
			/productlisting/timeout.seam
    	
    </error-page>
</web-app>


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970943#3970943

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970943



More information about the jboss-user mailing list