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 Button submit
    [jetty] DDC choices LDM: getObject
    [jetty] DDC choices LDM: onDetach

The Button submit changes the list, the following LDM getObject() does
not result in a load() call.  Am I using LDM wrong?  Do I need to be
tickling the LDM or DDC somehow?

Thanks,
-troy

On Thu, Jul 30, 2009 at 12:45 AM, Troy Cauble <[email protected]> wrote:

> 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 that change the hibernate data for
> the choices.  They also clear the DDC selection with
> ddc.setModelObject(null).
>
> How do I get the DDC to reload the choices?  The old choices are visible
> unless I reload the page.  I have a printf in ldm.load() that tells me it
> is not
> being called until I reload the page.
>
> Thanks!
> -troy
>

Reply via email to