diff options
Diffstat (limited to 'server/src/com/vaadin/annotations/PreserveOnRefresh.java')
-rw-r--r-- | server/src/com/vaadin/annotations/PreserveOnRefresh.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/com/vaadin/annotations/PreserveOnRefresh.java b/server/src/com/vaadin/annotations/PreserveOnRefresh.java index 0b503b8c3f..801c1e78f2 100644 --- a/server/src/com/vaadin/annotations/PreserveOnRefresh.java +++ b/server/src/com/vaadin/annotations/PreserveOnRefresh.java @@ -22,6 +22,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.vaadin.server.UIProvider; +import com.vaadin.ui.UI; /** * Marks a UI that should be retained when the user refreshed the browser @@ -30,6 +31,10 @@ import com.vaadin.server.UIProvider; * adding this annotation to a UI class, the framework will instead reuse the * current UI instance when a reload is detected. * <p> + * Whenever a request is received that reloads a preserved UI, the UI's + * {@link UI#reinit(com.vaadin.server.VaadinRequest) reinit} method is invoked + * by the framework. + * <p> * By using * {@link UIProvider#isPreservedOnRefresh(com.vaadin.server.UICreateEvent)}, the * decision can also be made dynamically based on other parameters than only |