I think I'd have extended ValueBoxBase instead (which already implements
LeafValueEditor –through IsEditor and ValueBoxEditor– and handles malformed
input by recording an error on an EditorDelegate — ValueBox could also be
used, just make sure you set the type=date after you called the super
co
Hi,
I did it like this. Any comment/improvement ?
public class DateEditor extends Composite implements LeafValueEditor {
static final DateTimeFormat html5Fmt =
DateTimeFormat.getFormat("-MM-dd");
TextBox textBox;
public DateEditor() {
super();
textBox = new TextBox(createDateInput());
init