我有一个带有应用道场装饰的下拉列表的表单。当我提交表单而未在下拉列表中选择任何内容时,我没有收到任何警报或要求的消息,表明正在提交表单。请建议我需要做什么。
<form:form id="payment" method="post" modelAttribute="registration">
<label for="proofId">Proof Type:</label>
<form:select path="proofId" style="width:110px;" id="proof" name="proofId">
<form:option value="-1">Select</form:option>
<form:options items="${typeofproof}" itemValue="proofId" itemLabel="proofType"/>
</form:select>
</li><br />
Spring.addDecoration(new Spring.ElementDecoration({
elementId : "proof",
widgetType : "dijit.form.FilteringSelect",
widgetAttrs : {
promptMessage : "Select Proof Type",
required : true,
}
}));
<button type="submit" id="submit" name="_eventId_createRegistration">Register Me</button>
Spring.addDecoration(new Spring.ValidateAllDecoration(
{
elementId : 'submit',
event:'onclick'
}));
</form:form>