SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 84 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"

It was stored for
that session, and the web application cannot afford to store sessions for all its users
eternally. The standard timeout interval is 30 minutes, and if we do not show any
activity for longer than this, our session will be invalidated, and any information
stored in it will be lost.
Again, this downside is relative. That is, it might not be essential for many pages of
our application whether they are bookmarked or not. There is however an approach
of passing the value to another page that doesn't involve any session, and it does
allow bookmarking. This is covered in the next sub-section.
The Foundations of Tapestry
[ 66 ]
Using Page Activation Context
Tapestry 5 has a special way to pass a value from one page to another. Let's see how
it works. First of all, we need to make the page "activatable", which means that we
should add two methods??”onActivate and onPassivate to the page. They will be
invoked by Tapestry at the appropriate moments of the HTTP request life cycle. In
this case, the Another page allows the @Persist annotation to be removed and adds
the mentioned methods, like the following listing shows:
package com.packtpub.t5first.pages;
public class Another
{
private String passedMessage;
public String getPassedMessage()
{
return passedMessage;
}
public void setPassedMessage(String passedMessage)
{
this.


Pages:
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6