I've got something i can't explain:
to display elements (a list of elements) which are lazy loaded.
after modification of those elements (and a submit), to recover those elements
I use the openSessionInViewFilter
It works fine with Spring MVC:
I have a SimpleFormController where:
in formBackingObject(...) i get an element (which contains the elements lazy loaded)
i display the view
in the onsubmit(...), i recover all i want and i can work with the collection which is now loaded
I try to do that in webflow :
I have a FormAction where :
in setupForm(...) i get an element (which contains the elements lazy loaded)
i display the view => elements lazy loaded are well displayed
in the processSubmit(...), i recover the form (which is in flow scope) but i can't work with the collection because it was not loaded !!!
i don't understand why the collection (lazy loaded) is displayed and the reason why i can work (i have a LazyInitializationException) with it in the method processSubmit(...)
in fact in debug mode, we can see that the collection have not been loaded, it's very strange because this collection was displayed in the view !!!
The way i recover the form in processSubmit(...) :
in this form there is the element which contains the elements lazy loaded
form = (SecondeReceptionForm) context.getFlowScope().getAttribute("secondeReceptionForm");
If anyone can help me, thank you very much.