-
Feb 11th, 2009, 04:28 PM
#1
AbstractWizardFormController and OSIV
Hi I'm using an AbstractWizardFormController...
I populate my form backing object with an object returned from a hibernate DAO findById. This object has a collection associated with it (Set).
When I am going from page 0 to page 1 in my wizard I want postProcessPage to get the object returned from the hibernate query out of my form object and retrieve the associated set and do some processing. However, I keep getting a LazyInitalizationException because the session is closed.
Now for all my other SimpleFormControllers this problem is handled by the OpenSessionInViewInterceptor. Why is this not the case with the wizard controller? Is the page loading happening outside the OSIVI's scope? The session is obviously closed when I come back to the controller the second time, but with the SimpleFormController when I post back to the same controller during the submit request it knows to reattach the session. Why is it not smart enough to do the same between posts to the same wizard controller?
Thanks is advance.
-Mike
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules