((DBRecord)record).setValidateFieldValues(true);
}
}
else if (record instanceof RecordData)
{ // a record
throw new PropertyReadOnlyException("record");
}
else
{ // a normal bean
String prop = getColumn().getBeanPropertyName();
setBeanPropertyValue(record, prop, value);
}
}
else
{ // Get from tag
// tag.setValue(value);
ValueExpression ve = tag.getValueExpression("value");
if (ve == null)
throw new PropertyReadOnlyException("value");
FacesContext ctx = FacesContext.getCurrentInstance();
ve.setValue(ctx.getELContext(), value);
}
}