class extends Dialog
Any news?
You can try to add an annotation LoadDependenciesOnStartup. The documentation is here Production Build | Deploying to Production | Vaadin Docs
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