Re: setReuseItems(true) + transactions = ERROR (Solved!)

2011-06-04 Thread Gonzalo Aguilar Delgado
Without transactions it works now. With few implications. 1.- I have to put singleSession to true. Otherwise it fails: openSessionInViewFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter singleSession

Re: setReuseItems(true) + transactions = ERROR (Solved!)

2011-06-04 Thread Gonzalo Aguilar Delgado
Oh man... It's almost solved but a lot of things happened in the middle: 1.- I was using wicket examples configurations that makes no use of the org.apache.wicket.spring.SpringWebApplicationFactory in the WicketFilter. I normally use it but for this project wanted t

Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread James Carman
Can you try to replicate what you're doing in a more simple fashion? Take your wicket framework code out of the mix. Just try a wicket/spring/hibernate example. You can use the Wicketopia example as a template if you want. On Sat, Jun 4, 2011 at 6:01 AM, Gonzalo Aguilar Delgado wrote: > I remov

Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread Gonzalo Aguilar Delgado
I removed transactional pointcuts to see if this removes the issue. But the problem got worse. It seems that something is really wrong configured in my project. DEBUG - DefaultListableBeanFactory - Returning cached instance of singleton bean 'leadDAOBean' DEBUG - SessionFactoryUtils- Open

Re: setReuseItems(true) + transactions = ERROR

2011-06-04 Thread Gonzalo Aguilar Delgado
>Hi, >are you sure your model is a LDM? Yes. Sure. Encapsulated by an CompoundPropertyModel. --- new CompoundPropertyModel(scaffoldableModel) --- /* * Need this because wicket serializes everything and need to reload it when * it's needed. This way wicke

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Sven Meier
Hi, are you sure your model is a LDM? IIRC you have a ListView involved. What's the type of this.getDefaultModel() ? I suppose that normal execution is ... Yes, this is the way it is supposed to work. Sven On 06/03/2011 07:55 PM, Gonzalo Aguilar Delgado wrote: Hi Again, I checked why I'

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
Hi James, I added it already: - openSessionInViewFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter singleSession true

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread James Carman
Try using the open session in view filter On Jun 3, 2011 1:55 PM, "Gonzalo Aguilar Delgado" < gagui...@aguilardelgado.com> wrote: > Hi Again, > > I checked why I'm receiving this nasty error. It seems that fails in > this piece of code of the submit form: > > @Override > protected void onSubmit() {

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
Hi Again, I checked why I'm receiving this nasty error. It seems that fails in this piece of code of the submit form: @Override protected void onSubmit() { log.debug("Saving content");

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Gonzalo Aguilar Delgado
Hi Sven, Thank you for the update. I will check why they are not detached... They should. Tnx again. -- "No subestimes el poder de la gente estúpida en grupos grandes" El vie, 03-06-2011 a las 09:00 +0200, Sven Meier escribió: > Hi, > > with resuseItems=true the listview will reuse ite

Re: setReuseItems(true) + transactions = ERROR

2011-06-03 Thread Sven Meier
Hi, with resuseItems=true the listview will reuse items *on render*, but this doesn't change whether model objects are serialized into the session or not. It rather seems that you're not detaching your models properly. I'd make a wild guess that you keep references to your persistent objects

setReuseItems(true) + transactions = ERROR

2011-06-02 Thread Gonzalo Aguilar Delgado
Hello, I used to refresh all the components in the listview for each http transaction. But now I tried to use the: setReuseItems(true); When using a ListView. Documentation says that is a must (but I made it to work without it). The problem is that now the objects are serialized and deserial