I use the hibernate version, but it should be the same.
Here my config(works with tapestry 5.1.0.5 and 5.2.6, i never tried the
newest version):

    <filter>
           <filter-name>Hibernate Session In View Filter</filter-name>

<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
           <init-param>
                <!-- you must specify this if the name of your
sessionFactory is not "sessionFactory" -->
               <param-name>sessionFactory</param-name>
               <param-value>mySessionFactory</param-value>
           </init-param>
           <init-param>
               <param-name>flushMode</param-name>
               <param-value>AUTO</param-value>
           </init-param>
           <init-param>
               <param-name>singleSession</param-name>
               <param-value>true</param-value>
           </init-param>
    </filter>

    <filter>
        <filter-name>app</filter-name>

 <filter-class>org.apache.tapestry5.spring.TapestrySpringFilter</filter-class>
    </filter>
    <filter-mapping>
            <filter-name>Hibernate Session In View Filter</filter-name>
            <url-pattern>/*</url-pattern>
    </filter-mapping>

Hope that can be useful,

Giulio

Reply via email to