You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Tim Eapen <ti...@intelliware.ca> on 2013/04/18 04:22:52 UTC
Problem Submitting Form in Modal Window / Ajax POST stopped
Hi All,
I have a form inside a modal window. I want to submit the form using an AjaxButton, however the button is unresponsive. Looks like there are some errors client-side. I see the following error in the Ajax Debug window:
INFO: Ajax POST stopped because of precondition check, url:?wicket:interface=:5:cellDefinitionModal:content:addFundingDefinitionForm:dialogCancel::IActivePageBehaviorListener:0:-1&wicket:ignoreIfNotActive=true
Any ideas as to what I am doing wrong?
Here is the mark-up for the panel I am using to fill the modal:
<wicket:panel xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd">
<form wicket:id="addFundingDefinitionForm">
<div wicket:id="modalFeedback" />
<table width="100%">
<tr>
<td style="float: right; padding-right: 20px"><label><wicket:message key="indexName" /></label></td>
<td><select wicket:id="indexType"></select></td>
</tr>
<tr>
<td style="float: right; padding-right: 20px"><label><div wicket:id="columnName" /></label></td>
<td><select wicket:id="columnSelect"></select></td>
</tr>
<tr>
<td style="float: right; padding-right: 20px"><label><div wicket:id="rowName" /></label></td>
<td><select wicket:id="rowSelect"></select></td>
</tr>
<tr>
<td style="float: right; padding-right: 20px"><label><wicket:message key="cellWeight" /></label></td>
<td><input type="text" wicket:id="cellWeight" maxlength="8" /></td>
</tr>
<tr>
<td> </td>
<td>
<input type="button" wicket:id="dialogSave" wicket:message="value:saveLabel">
<input type="button" wicket:id="dialogCancel" wicket:message="value:cancelLabel">
</td>
</tr>
</table>
</form>
</wicket:panel>
tim