Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-689

Please make it easier to use a custom RequestCycle

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.6
    • 1.3.0-beta2
    • wicket
    • None
    • Java 5, Mac OS X 10.4.

    Description

      It's trival to introduce a new Session class. Just override newSession in Application:

      public Session newSession()

      { return new MySession(this); }

      But introducing a new RequestCycle is a pain. I have to override Session.getRequestCycleFactory or Application.getDefaultRequestCycleFactory, providing a new factory that returns the particular RequestCycle that I want.

      Strangely, there is a Session.newRequestCycle, but it's final. (Why?)

      Suggestion: Please make Session/RequestCycle work like Application/Session. Let me just override newRequestCycle in Session and instantiate my RequestCycle. Maybe Application should implement ISessionFactory, and Session should implement IRequestCycleFactory. (Why does WebApplication implement ISessionFactory but not Application?)

      Attachments

        Activity

          People

            ehillenius Eelco Hillenius
            wboyce@panix.com Willis Blackburn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: