I am having issues with LDM,  Hibernate lazy loaded lists, and ajax.

 

I create a CompoundPropertyModel of a LDM and set that as the default
model for the page.

I then pass the model to the form and to a custom component in the form.
The custom component is a list editor.  Basically a ListView with lots
of ajax link for editing the values.

 

The issue I am having is I can get everything to work however because of
the LDM, the model is being over-written on each Ajax request and also
on form submission so I cannot modify any values since they are not
available in the onsubmit because the LDM reloads.

 

If I do not use the LDM then I get Hibernate errors because of the lazy
loading.

 

If I remove the lazy loading and use eager loading and don't use the LDM
then everything works fine.  The issue is because of the eager loading
then other parts of the application load lots of data that is not
needed.

 

Any ideas?  Can I not use the LDM for what I want?

 

Thanks.

 

Reply via email to