支持多窗口检票口

支持多窗口检票口

本文介绍了支持多窗口检票口 6.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用检票口并在打开两个页面时使页面过期,我试图在另一个页面之后提交有没有办法在 wicket 6.8 中支持 getPageSettings().setAutomaticMultiWindowSupport(true)

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 otheris there a way to support getPageSettings().setAutomaticMultiWindowSupport(true) in wicket 6.8

推荐答案

你必须知道你的页面会有多大以及你有多少并行会话.我认为您的页面大小(序列化)大于 maxSizePerSession,因此只有最后一页存储在磁盘上.

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.

您可以稍微调整您的 IPageStore 设置(但这会增加您的资源使用量):

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);

这篇关于支持多窗口检票口 6.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 21:11