How to use the vaadin component to select the date and time as

I use the PopupDateField vaadin component, and it only allows you to select a Day that is not with time. Is there any other component in vaadin that there is this possibility or is there any way to change PopupDateField to support timing?

This is my code now

  PopupDateField popupDateFieldScheduled = new PopupDateField(); popupDateFieldScheduled.setImmediate(false); popupDateFieldScheduled.setWidth("-1px"); popupDateFieldScheduled.setHeight("-1px"); popupDateFieldScheduled.setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); 
+4
source share
1 answer

The default resolution for DateField in Vaadin 7 is the day. You can customize it using DateField # setReolution , i.e. popupDateFieldScheduled.setResolution(Resolution.SECOND)

+11
source

Source: https://habr.com/ru/post/1488246/


All Articles