public void setValue(String value) throws FormException {
if (value == null)
value = "";
if (value.length() < min)
throw new ValidateException(getTarget(), this, "min");
if (max > 0 && value.length() > max)
throw new ValidateException(getTarget(), this, "max");
if ((this.value != null && !this.value.equals(value))
|| (value != null && !value.equals(this.value))) {
this.value = value;
setChanged(true);