wicket - 支持多窗口 Wicket 口 6.x

标签 wicket wicket-1.6

嗨,我正在使用 Wicket 口,当打开两个页面时,页面就会过期,并且我正在尝试在另一个页面之后提交 有没有办法在 wicket 6.8 中支持 getPageSettings().setAutomaticMultiWindowSupport(true)

最佳答案

您必须知道您的页面将有多大以及并行的 session 数。我认为您的页面大小(序列化)大于 maxSizePerSession 并且因为只有最后一页存储在磁盘上。

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

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

关于wicket - 支持多窗口 Wicket 口 6.x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18488068/

相关文章:

java - 可以自定义 Wicket 模态窗口吗?

java - 通过 ChoiceRenderer 在 Wicket DropDownChoice 中显示两个字段

wicket - 两个具有不同验证的提交按钮

Wicket 1.4 => 6.7 替换 AjaxButton : getAjaxCallDecorator

java - Wicket 口和后端验证

java - Wicket LoadableDetachableModel 更新问题

Java:在 Apache Wicket Web 应用程序中将文本复制到剪贴板

java - 带 Wicket 的正则表达式 mountPage