Sorry, I forgot the filter mapping part. You should also add this to web.xml:
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
Just replace the url-pattern with the correct pattern you use for JSF
(*.jsf for example)
-Turgay
On 8/31/05, Turgay Zengin <[EMAIL PROTECTED]> wrote:
> Did you try the OpenSessionInViewFilter?
> In web.xml, define this filter:
>
> <filter>
> <filter-name>hibernateFilter</filter-name>
> <filter-class>org.springframework.orm.hibernate.support.OpenSessionInViewFilter</filter-class>
> </filter>
>
> I have not tried this with MyFaces yet, but with Struts this worked for me.
>
> HTH,
> Turgay.