Added @PreserveOnRefresh annotation to prevent Singleton exception
This commit is contained in:
parent
4d508660eb
commit
15dc206830
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@ import com.vaadin.flow.component.notification.Notification;
|
||||||
import com.vaadin.flow.component.notification.NotificationVariant;
|
import com.vaadin.flow.component.notification.NotificationVariant;
|
||||||
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
|
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
|
||||||
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
|
||||||
|
import com.vaadin.flow.router.PreserveOnRefresh;
|
||||||
import com.vaadin.flow.router.Route;
|
import com.vaadin.flow.router.Route;
|
||||||
import com.vaadin.flow.router.PageTitle;
|
import com.vaadin.flow.router.PageTitle;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
@ -23,6 +24,7 @@ import java.util.List;
|
||||||
|
|
||||||
@Route("")
|
@Route("")
|
||||||
@PageTitle("Moderatorenwahl")
|
@PageTitle("Moderatorenwahl")
|
||||||
|
@PreserveOnRefresh
|
||||||
@Configuration
|
@Configuration
|
||||||
public class MainView extends VerticalLayout {
|
public class MainView extends VerticalLayout {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue