Well, I found some detachable model documentation and figured it out.
LDM::detach() will cause a getObject() call to load(). Putting detach early
in my Form::submit() was sufficient for this example.
Another wrinkle was that I also had a Button with the same issue and putting
detach() in Button::
Here's a minimal example of my problem.
Again, the LDM::getObject() call AFTER the onSubmit()
call that changes the data does not result in a LDM::load().
There's a load() before the onSubmit(), but that's too early.
Anyone? What am I missing?
Thanks,
-troy
[jetty] DDC choices LDM: getObj
It seems my problem may be with the use of LoadableDetachableModel.
Below is print statement debugging of a Button action that alters
the DDC choices.
[jetty] DDC choices LDM: getObject
[jetty] DDC choices LDM: load(reading docs)
[jetty] DDC choices LDM: onAttach
[jetty] delete doc
I have the following
Page
Form
DDC
TextFields
Buttons
The DDC has a LoadableDetachableModel with a hibernate call for
the *choices* model and "new Model()" for the DDC model.
Changing the DDC selection, changes the TextFields appropriately.
But I have a Button and a form submit