on 05-24-2005 9:37 PM
When I use simple types to enforce the length restrictions on the fields in a form, the max length restriction works, but a min length restriction of 1 doesn't seem to do anything. Any ideas?
-Dave
You mean that entering zero symbols by-pass validation in <b>valdating</b> action handler???
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right... I am using the simple types for fields on a form, and was hoping that the min length restrictions would prevent the save from working when nothing is entered for those fields (basically making them required fields). It works when I use a min length restriction of say 5 and enter less than 5 characters - but not when the min length restriction is 1.
By validating action handler, all you mean is the action's "without validation" checkbox is unchecked, right? This is the case for my Save action on this form.
-Dave
Hi there,
does this bug - if it really is one - still occurs in NDS 2.0.19?
I've discovered the same problem as Dave in the 2.0.19 Release, when creating a Simple Type of Build-In Type string with Maximum Length 50 and Minimum Length 2.
I left the field blank, and when i hit the save button in my application it doesn't say anything - well, except the error message from the hibernate layer that a not-null property is not set.
Is there already an OSS Message for this problem opened? Does anyone has a solution?
regards and thanks in advance,
Patrick
Hi David,
The default minimum for simple type is 1.Otherwise you cant create a value for a simple type.
When u say its not working wat do u mean by that.are u trying to say that you could create a simple type element with no value in it ?
If so wat NDS version are u using ?
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.