Re: reloading DropDownChoice choices

2009-08-02 Thread Troy Cauble
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::

Re: reloading DropDownChoice choices

2009-07-30 Thread Troy Cauble
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

Re: reloading DropDownChoice choices

2009-07-30 Thread Troy Cauble
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

reloading DropDownChoice choices

2009-07-29 Thread Troy Cauble
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