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

Guide: 26.1 Page storing, section HttpSessionDataStore - example code is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 7.3.0
    • 7.4.0, 6.24.0, 8.0.0-M2
    • guide
    • None

    Description

      Is:
      The example does not compile

      • new DefaultPageManagerProvider() does not exist. The application is needed as an attribute.
      • pageManagerContext is not visible. A getter must be used.

      Proposal / working example:

      Example.java
      @Override
      public void init(){
      	super.init();
      	setPageManagerProvider(new DefaultPageManagerProvider(this){
      		@Override
      		protected IDataStore newDataStore() {
      			return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(20));
      		}
      	});
      }
      

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            jan.luehr@anderscore.com Jan Lühr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: