Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Date conversion error on saving form field that's read-only

David Wall
6 years ago Oct 13, 2015 8:09pm
David Wall
6 years ago Oct 26, 2015 7:55pm
Petrus Viljoen
6 years ago Oct 27, 2015 11:25am
David Wall
6 years ago Oct 27, 2015 5:02pm
Petrus Viljoen
6 years ago Oct 28, 2015 6:49am

I agree with you that the behaviour of readonly fields are quircky , was just stating why the converter was called.
You can try and cache the original value in the converter, and when it tries to convert from presentation to model value you simply return the cached value instead.
NOTE You will have to dedicate a converter instanace to each instance of the readonly field.