Editable false for required DateField #PL-2963

This commit is contained in:
Yuriy Artamonov 2013-10-28 14:54:20 +00:00
parent db81d780bb
commit 805f7fcd1e
2 changed files with 6 additions and 0 deletions

View File

@ -422,6 +422,8 @@ public class WebDateField
this.editable = editable; this.editable = editable;
timeField.setEditable(editable); timeField.setEditable(editable);
dateField.setReadOnly(!editable); dateField.setReadOnly(!editable);
component.setCompositionReadonly(!editable);
} }
@Override @Override

View File

@ -79,6 +79,10 @@ public class DateFieldWrapper extends CustomField {
} }
} }
public void setCompositionReadonly(boolean readonly) {
super.setReadOnly(readonly);
}
@Override @Override
public Object getValue() { public Object getValue() {
return dateField.getValue(); return dateField.getValue();