Re: html5 date input as Editor

2017-02-07 Thread Thomas Broyer
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

html5 date input as Editor

2017-02-06 Thread 129pierre
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