Re: ModalWindow and LazyLoading Exception

2009-10-04 Thread Albert Romanius
No, The exception happens when the modal is displayed. The problem can be solved using a DetachableModel. ***Maybe***... When u do the ajax call to open the window, the createPage of the modal is called, but not the render. After that, wicket calls the modal url, and this time the render method w

Re: ModalWindow and LazyLoading Exception

2009-10-02 Thread Marcelo Fukushima
weird... I'd expect that the CheckboxMultipleChoice would force the initialization of the list before the EntityManager is closed. Is the exception thrown on the form submission? On Fri, Oct 2, 2009 at 8:48 AM, Pedro Santos wrote: > use *OpenSessionInViewFilter* to avoid lazy initialization excep

Re: ModalWindow and LazyLoading Exception

2009-10-02 Thread Pedro Santos
use *OpenSessionInViewFilter* to avoid lazy initialization exceptions On Fri, Oct 2, 2009 at 8:42 AM, Albert Romanius wrote: > The line that throws the exception is below: > CheckBoxMultipleChoice subMessagesCB = new CheckBoxMultipleChoice( > "subMessages", new PropertyModel(this, >

Re: ModalWindow and LazyLoading Exception

2009-10-02 Thread Albert Romanius
The line that throws the exception is below: CheckBoxMultipleChoice subMessagesCB = new CheckBoxMultipleChoice( "subMessages", new PropertyModel(this, "selectedSubs"), showMessage.getLazyList()); The problem is the showMessage.getLazyList() call. When wicket renders this combobox, s

Re: ModalWindow and LazyLoading Exception

2009-10-01 Thread Marcelo Fukushima
while i couldnt identify which object is throwing the lazyInitialization, the problem is probably that the entity is not associated with the hibernate session. On the request that opens the ModalWindow you must either reload or reatach the entity On Thu, Oct 1, 2009 at 7:55 PM, Albert Romanius wr

ModalWindow and LazyLoading Exception

2009-10-01 Thread Albert Romanius
Hi, I am working with wicket and jpa/hibernate/spring. I am trying to create a ModalWindow, but I get a LazyLoadingException. I tryed the OSIVpattern, but it did not work. Using the modal inside a form does not make any difference also. Has anyone else this problem? The page which the modalWind