…
HorizontalLayout hLayoutPicker = new HorizontalLayout(vonPicker, bisPicker);
hLayoutPicker.setWidthFull();
vLayoutAbfrage.add(hLayoutPicker);
…
SplitLayout splitLayout = new SplitLayout(vLayoutAbfrage, anotherComponent);
splitLayout.setSplitterPosition(70);
splitLayout.addThemeVariants(SplitLayoutVariant.LUMO_SMALL);
this.add(splitLayout);
this.getFooter().add(teilfragenButton, abbrechenButton);
return this;
You can try to add an annotation LoadDependenciesOnStartup. The documentation is here Production Build | Deploying to Production | Vaadin Docs
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
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