Announcement Announcement Module
Collapse
No announcement yet.
AbstractWizardFormController and OSIV Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X