I created a number field on an xpage. However the input checking does not work properly. It accepts only numbers, which is expected behavour, but the number of entered digits is not validated. Numbers with more than 6 digits accepted which could not be possible, because of regExp \d{6}.
Here is the code on the xpage:
<xe:djNumberTextBox id="inputTextMidasId"
dojoType="dijit.form.NumberTextBox"
value="#{complaintDocument.midasId}" javaType="short"
regExp="\d{6}">
<xe:this.constraints>
<xe:djNumberConstraints pattern="######">
</xe:djNumberConstraints>
</xe:this.constraints>
</xe:djNumberTextBox>
Can anybody tell how to make this code working? Thank you.