support readOnly field attribute