Is there a preferred way to pass information from a Form's AjaxButton submit
handler to a Modal window's panel's form? I am currently manually updating
individual fields on the model instance object I am assigning to the Modal
Windows > Panel > Form > FormComponents.

Since the Modal window is created way before I ever invoke
modal.show(target), I assume the Model instance is already set (I assume the
ctor is called when the page is first instantiated) so instead of just
'reseting' the model object's instance ... I am really copying individual
fields - essentially updating the current model in place ... does that sound
right?

Is there another more elegant way to do this? The basics: a window has a
form with a drop down - I select an option and click the AjaxButton to
display a modal window allowing me to edit all the database fields of the
item in the drop down. I essentially need to pass the item from the initial
window to the Modal window's form's model.

Sorry for the length of this question.

-Luther

Reply via email to