We allow users to define custom "triggers" on a form submit (an ajax submit). These triggers can send an email or take the user to another form/panel (basically a panel-swap via Ajax). This panel-swap works fine until circumstances land the form in a ModalWindow. I can't get the ModalWindow to replace it's contents once it's showing. I've tried setContent() and replace(). I've tried closing the window, setting the content and opening it. Nothing works. And yes, I do have the ModalWindow embedded in another form per the javadoc. Something is odd because I also have a custom Link class that swaps out its parent panel via ajax and those links work fine in a ModelWindow. Does anyone have any insight? Is there something about form processing that prevents this from working?
Thanks!