Hi James,
Here is an extract from my web.xml file :
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<servlet-name>myApp</servlet-name>
</filter-mapping>
<servlet>
<servlet-name>myApp</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>myApp</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
Perhaps the bug comes from a different location but i don't understand
why the error arises only with the Ajax Request as the page that should
be endered is exactly the same ...
--
Stéphane Decleire
Cariboo Networks SARL
05 56 57 99 20 / 06 63 78 69 06
www.bebe-nounou.fr
James Carman a écrit :
How do you have your OpenSEssionInViewFilter mapped? What url-mapping
are you using?
On 1/12/07, Stephane Decleire <[EMAIL PROTECTED]> wrote:
Hi,
I've got a strange behavior in my T4.1.1 application when triggering a
DirectLink with the DojoAjaxResponseBuilder :
@Component(id="selectLink", bindings={
"listener=listener:doClick",
"parameters=blockId",
"async=true" })
public abstract DirectLink getSelectLink();
When the async property is set to false, my page is displayed without
errors but when the property is set to true, i've got the awfull "lazy
initialisation exception" error when the page tries to access entity
beans managed by Hibernate.
It seems that the DojoAjaxResponseBuilder bypass the OpenSessionInView
filter declared in my web.xml file.
Is it a normal behavior for the Ajax requests ?
Any clue is welcome.
--
Stéphane Decleire
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]