From a1c4ee58166738eb822b385d61529397bd550fd5 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Wed, 9 Apr 2025 16:21:23 +0300 Subject: [PATCH 1/2] Add note about Vaadin scoped beans --- articles/flow/integrations/spring/scopes.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/articles/flow/integrations/spring/scopes.adoc b/articles/flow/integrations/spring/scopes.adoc index 0fe5aa9128..53133f86a1 100644 --- a/articles/flow/integrations/spring/scopes.adoc +++ b/articles/flow/integrations/spring/scopes.adoc @@ -41,6 +41,9 @@ All Flow routing components (`@Route`, `RouterLayout` or `HasErrorParameter`) ar [NOTE] When changing the scope annotations, the application server needs to be restarted to apply the new scopes. Restart is required even when live reload is enabled. +.Vaadin scoped bean need to be serializable +[NOTE] +The `BeanStore` is stored in the session. This means in case you persist sessions, e.g. when using Control Center or Kubernetes Kit, the beans needs to be serializable. === VaadinSessionScope From 7a4183ea439a63f74da8bcf3dbb102f6c7fdef06 Mon Sep 17 00:00:00 2001 From: Tatu Lund Date: Wed, 9 Apr 2025 16:50:21 +0300 Subject: [PATCH 2/2] Update articles/flow/integrations/spring/scopes.adoc Co-authored-by: Marco Collovati --- articles/flow/integrations/spring/scopes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/flow/integrations/spring/scopes.adoc b/articles/flow/integrations/spring/scopes.adoc index 53133f86a1..b6b98a8f68 100644 --- a/articles/flow/integrations/spring/scopes.adoc +++ b/articles/flow/integrations/spring/scopes.adoc @@ -43,7 +43,7 @@ When changing the scope annotations, the application server needs to be restarte .Vaadin scoped bean need to be serializable [NOTE] -The `BeanStore` is stored in the session. This means in case you persist sessions, e.g. when using Control Center or Kubernetes Kit, the beans needs to be serializable. +The [classname]`BeanStore` is stored in the session. This means in case you persist sessions, e.g. when using Control Center or Kubernetes Kit, the beans needs to be serializable. === VaadinSessionScope