It’s very likely the same issue as here: Discord
Thank you for your answer. I will check.
I also checked html and saw that the timepicker ist empty:
Did you try to add this annotation @LoadDependenciesOnStartup
on top of the class that implements AppShellConfigurator
?
The issue was a wrong annotation. It was using Route for a component instead of UIScope.
Issue solved. Thanks.
do you mind explaining further, I am having a similar issue
@faithful-emu
It seems that there are JS issues for me, and I guess it fails to set the value for DateTimePicker:
message.txt (10.1 KB)
The relevant code:
public void updateFields(){
nfId.setValue(0.0 + data.id);
tfTitle.setValue(data.title);
LocalDateTime localDateTime = data.msCreated.toLocalDateTime();
UI ui = UI.getCurrent(); // not null
dfMsCreated.setStep(Duration.ofMinutes(60));
dfMsCreated.setValue(localDateTime);
dfMsCreated.setValue(LocalDateTime.of(2020, 6, 12, 15, 45, 8));
selStatus.setValue(data.status);
selType.setValue(data.type);
}
As you can see I tried different things already
I tried that too
If this @LoadDependenciesOnStartup didn’t work then you should probably create another topic with more information
about how the datapicker is added in your view
And if you have a sample to reproduce that would help
Just noticed this warnings in the console:
2024-03-11 13:25:48.998 [] ERROR com.vaadin.flow.component.internal.UIInternals - The component class com.vaadin.flow.component.datetimepicker.DateTimePickerTimePicker includes '@vaadin/time-picker/src/vaadin-time-picker.js' but this file was not included when creating the production bundle. The component will not work properly. Check that you have a reference to the component and that you are not using it only through reflection. If needed add a @Uses(DateTimePickerTimePicker.class) where it is used.
2024-03-11 13:25:48.999 [] ERROR com.vaadin.flow.component.internal.UIInternals - The component class com.vaadin.flow.component.datetimepicker.DateTimePickerDatePicker includes '@vaadin/date-picker/src/vaadin-date-picker.js' but this file was not included when creating the production bundle. The component will not work properly. Check that you have a reference to the component and that you are not using it only through reflection. If needed add a @Uses(DateTimePickerDatePicker.class) where it is used.
2024-03-11 13:25:49.000 [] ERROR com.vaadin.flow.component.internal.UIInternals - The component class com.vaadin.flow.component.datetimepicker.DateTimePicker includes '@vaadin/date-time-picker/src/vaadin-date-time-picker.js' but this file was not included when creating the production bundle. The component will not work properly. Check that you have a reference to the component and that you are not using it only through reflection. If needed add a @Uses(DateTimePicker.class) where it is used.
Ill try that out