Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated the Custom Session portion to show how things work in Wicket 1.3.x

...

Code Block
public class MySession extends WebSession {
   public MySession(WebApplicationRequest applicationrequest) {
      super(applicationrequest);
   }
   private String myAttribute;
   // ... getters and setters
}

and override either of the following methods on your Application class:

Code Block
protected ISessionFactory getSessionFactory() {
    return this.sessionFactory;
}
@Override
public Session newSession(Request request, Response response) {
    return new MySession(WebApplication.thisrequest);
}

Custom RequestCycles

Describe how to use custom request cycles.