Hello,

I've noticed that a Form inside a ModalWindow can't be submitted using the onSubmit function (and dislikes a standard submit button) but instead requires an AjaxButton to call the action - why is this so? It makes my life currently somehow hard as I need 2 nearly identical forms - one with AjaxButton (in case I want to use it in ModalWindow), one without AjaxButton for non JS pages.

Also I noticed a strage behaviour:

when using ModalWindow with a Page we have the pageConstructor() that creates a whole new page (all models are fresh) when opening it, while in case you use it with a Panel/ Component the component is created just once and Models arent cleaned up in case you close the window and reopen it (e.g.: a form you put in and submit and close window and reopen it using initial link displays the submited values) - opposite behaviour compared to ModalWindow with Page where on each creation all is cleaned.

Best,

Korbinian






Reply via email to