0

I am binding some text fields with data from a table and everything seems OK!

But in two particular fields I need to use dates and so I altered the corresponding TextFields to DateFields so that it is more convenient to user to change dates.

The problem now is that I cannot bind the data from the table to these DateFields...

Any idea on that?

kostia
  • 324
  • 5
  • 18
  • Why can't you bind them? – agad Dec 08 '14 at 10:27
  • An error occurs in the value change listener when setting the itemDataProperty. One thing is that all other fields just use the text property but the DateFields are different. – kostia Dec 08 '14 at 11:48
  • I thought to try making a custom Converter but still the same error appears... I tried to use the book of Vaadin's and set a global ConverterFactory but I don't see the proper Application class... – kostia Dec 08 '14 at 11:51
  • 1
    Show your code and error stack trace. – agad Dec 08 '14 at 13:13
  • I solved this by creating a Converter class to enable conversion from Date to String and vice versa. I didn't have to use a global ConverterFactory and I used the DateField's setConverter method. The reason I still get an error is because of a ComboBox that I use in the same way... – kostia Dec 13 '14 at 08:01

0 Answers0