Re: LoadableDetachableModel - should I call deatch() manually?

2008-07-09 Thread Artur W.
Hi! Timo Rantalaiho wrote: @Override public void onDetach() { positionToDisplay.detach(); super.onDetach(); } ... } Thanks for your help! It fixed my problem. Artur -- View this message in context:

LoadableDetachableModel - should I call deatch() manually?

2008-07-08 Thread Artur W.
Hi, When I create LoadableDetachableModel the onDeatch() and deatch() methods are never called. The load method is only called once. Becouse of it I get LazyInitializationException from Hibernate. Should I call deatch() manually or is there something wrong with my LoadableDetachableModel?

Re: LoadableDetachableModel - should I call deatch() manually?

2008-07-08 Thread Michael Sparer
The detach method should be called by the component that uses the model, there should be no need for you to call detach manually. Artur W. wrote: Hi, When I create LoadableDetachableModel the onDeatch() and deatch() methods are never called. The load method is only called once.

Re: LoadableDetachableModel - should I call deatch() manually?

2008-07-08 Thread Timo Rantalaiho
On Tue, 08 Jul 2008, Michael Sparer wrote: The detach method should be called by the component that uses the model, there should be no need for you to call detach manually. ...unless the model is not the default model of any Component. For example you can have public class EmployeePanel