support for Multi Window wicket 6.x

扶醉桌前 提交于 2019-12-12 09:55:43

问题


Hi i am using wicket and getting page expire when ever two pages are open and I am trying to submit in on after the other is there a way to support getPageSettings().setAutomaticMultiWindowSupport(true) in wicket 6.8


回答1:


You've to know how big your pages will get and how many sessions you've in parallel. I think your page size (serialized) is bigger than maxSizePerSession and because of that only last page is stored on disk.

you can tweak your IPageStore settings a bit (but this will increase your resource usage):

/**
 * Sets the maximum number of page instances which will be stored in the application scoped
 * second level cache for faster retrieval
 * 
 * @param inmemoryCacheSize
 *            the maximum number of page instances which will be held in the application scoped
 *            cache
 */
void setInmemoryCacheSize(int inmemoryCacheSize);

    /**
 * Sets the maximum size of the {@link File} where page instances per session are stored. After
 * reaching this size the {@link DiskDataStore} will start overriding the oldest pages at the
 * beginning of the file.
 * 
 * @param maxSizePerSession
 *            the maximum size of the file where page instances are stored per session. In
 *            bytes.
 */
void setMaxSizePerSession(Bytes maxSizePerSession);


来源:https://stackoverflow.com/questions/18488068/support-for-multi-window-wicket-6-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!