In my example below I use dijit.form.DateTextBox:
<input type="text" name="startDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'MM/dd/yyyy'}" value='<c:out value="${sessionScope.adminMessageForm.startDate}"/>' />
So, for example, if the user starts to enter "asdf" into the date, the field turns yellow and the error message " The value entered is not valid." appears . Even if I delete constraints="{datePattern:'MM/dd/yyyy'}", it still checks.
Without going into details as to why, I would like to be able to save dojoType and still prevent validation in certain circumstances.
source
share