summaryrefslogtreecommitdiffstats
path: root/documentation/application/application-lifecycle.asciidoc
diff options
context:
space:
mode:
authorMarko Gronroos <magi@vaadin.com>2016-07-21 15:31:21 +0300
committerArtur Signell <artur@vaadin.com>2016-08-05 10:19:44 +0300
commitbc87c6c1cb0790a78dd607259a2b901f6c879254 (patch)
treedc88f3e6f9492d0bb252c4643badd4bca0d0fd07 /documentation/application/application-lifecycle.asciidoc
parent44a94bb28605bec406f415ef66fc332c265f7c9a (diff)
downloadvaadin-framework-bc87c6c1cb0790a78dd607259a2b901f6c879254.tar.gz
vaadin-framework-bc87c6c1cb0790a78dd607259a2b901f6c879254.zip
Updated StreamResource example and screenshot, as well as various diagrams. #19897
Uses slider example png/svg from the vaadin8 branch Change-Id: I8a52ca754262a32487d6c8330d0382635d9fedca
Diffstat (limited to 'documentation/application/application-lifecycle.asciidoc')
-rw-r--r--documentation/application/application-lifecycle.asciidoc28
1 files changed, 8 insertions, 20 deletions
diff --git a/documentation/application/application-lifecycle.asciidoc b/documentation/application/application-lifecycle.asciidoc
index 269f3d75b5..219002b414 100644
--- a/documentation/application/application-lifecycle.asciidoc
+++ b/documentation/application/application-lifecycle.asciidoc
@@ -427,7 +427,7 @@ public class MyUI extends UI {
setContent(new Button("Logout", event -> {// Java 8
// Redirect this page immediately
getPage().setLocation("/myapp/logout.html");
-
+
// Close the session
getSession().close();
}));
@@ -442,27 +442,20 @@ See the http://demo.vaadin.com/book-examples-vaadin7/book#application.lifecycle.
This is not enough. When a session is closed from one UI, any other UIs attached
to it are left hanging. When the client-side engine notices that a UI and the
session are gone on the server-side, it displays a "Session Expired" message
-and, by default, reloads the UI when the message is clicked. ((("session",
-"expiration")))
+and, by default, reloads the UI when the message is clicked.
+((("session", "expiration")))
((("redirection")))
-((("system
-messages")))
-You can customize the message and the redirect URL in the system messages
+((("system messages")))
+You can customize the message and the redirect URL in the system messages.
ifdef::web[]
-, as described in
-<<dummy/../../../framework/application/application-errors#application.errors.systemmessages,"Customizing
-System
-Messages">>
+It is described in <<dummy/../../../framework/application/application-errors#application.errors.systemmessages,"Customizing System Messages">>.
endif::web[]
-.
((("heartbeat")))
-((("UI",
-"heartbeat")))
+((("UI", "heartbeat")))
((("push")))
-((("server
-push")))
+((("server push")))
The client-side engine notices the expiration when user interaction causes a
server request to be made or when the keep-alive heartbeat occurs. To make the
UIs detect the situation faster, you need to make the heart beat faster, as was
@@ -471,7 +464,6 @@ immediately, as is done in the following example. Access to the UIs must be
synchronized as described in
<<dummy/../../../framework/advanced/advanced-push#advanced.push,"Server Push">>.
-
[source, java]
----
@Push
@@ -496,7 +488,3 @@ In the above example, we assume that all UIs in the session have push enabled
and that they should be redirected; popups you might want to close instead of
redirecting. It is not necessary to call [methodname]#close()# for them
individually, as we close the entire session afterwards.
-
-
-
-