hi list,
i use the struts validator (appfuse 2.0m5 struts hibernate and spring)
when i want to validate an int i have no problem when the int is between
0 and 999
but when i go over 1000 the javascript generates a code like this:
// field name: subscriber.user.lastName
// validator name: int
if (form.elements['subscriber.user.lastName']) {
field = form.elements['subscriber.user.lastName'];
var error = "bar must be between 6 and 2010, current value
is .";
if (field.value != null) {
if (parseInt(field.value) <
6 ||
parseInt(field.value) >
2,010) {
addError(field, error);
errors = true;
}
}
}
2010 becomse 2,010 wich will not work.
any one an idea??
thanks,
tibi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]