Life cyclePage edited by Ulrich Radermacher
Comment:
added description on how to access the custom session
Changes (1)
Full ContentLife cycleTODO Describe the life cycle of Wicket apps, sessions and requests. Custom SessionsThe wicket way of storing objects in your session is by extending the wicket session. For example if you want to store some kind of user object in your session, you would create a getter and setter for it in Add the property to your custom Session object. public class MySession extends WebSession { public MySession(Request request) { super(request); } private String myAttribute; // ... getters and setters } and override either of the following methods on your Application class: @Override public Session newSession(Request request, Response response) { return new MySession(request); }
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
