Hi, I'm using a panel inside a modal window. Inside the panel is a form, and the form has a FeedBackPanel and two text fields, one required. I'm using an IndicatingAjaxButton to submit the form.
Filling out the form with valid values and submitting it works fine. The problem occurs when there's a form validation error: Say I click the submit button without filling in the required field. The IndicatingAjaxButton's onError() method is called, the form is re-rendered and an error message appears in the feedback panel. So far, so good. Next, I enter the missing value into the required text field. I click the submit button. I get a "Are you sure you want to navigate away from this page...." browser alert. My Wicket Ajax Debug says that I was "Trying to submit form with id 'form12' that is not in document." Curiously, this happens only in Firefox and not in IE. If I try replacing the IndicatingAjaxButton with an AjaxSubmitLink, I do *not* get the "Are you sure you want to navigate away..." warning, but I still get the debug message saying that I was "Trying to submit form with id 'form12' that is not in document," and nothing happens. I'm a bit baffled... is the submit button losing the reference to the form somehow? Anyone seen this? Thank you! King of All Caffeine
