IceFaces:inputRichText - 打字时会话超时

发布于 2024-10-01 14:52:27 字数 680 浏览 0 评论 0原文

我正在使用 inputRichText 组件在我正在开发的系统中编写 HTML 格式的消息。

然而,我遇到了一个问题。即使用户在编辑器中工作,会话似乎也会超时。

我尝试将 web.xml 中的会话超时参数设置为 1 分钟,然后开始在编辑器中输入。 1 分钟后,出现“用户会话已过期”对话框。有什么方法可以让富文本编辑器组件保持会话活动吗?尽管你并没有处于不活动状态,但在某件事上工作了一段时间却因为会话超时而失去它是非常烦人的。

这是我用来在页面中显示组件的代码:

<ice:inputRichText height="250" toolbar="MyToolbar" customConfigPath="/FCKconfig.js" id="messageBody" value="#{bean.messageBody}" language="sv" saveOnSubmit="true" />

谢谢!

编辑:

我使用定期 JavaScript 调用 servlet 解决了这个问题,该 servlet 实现了 IceFaces JIRA 报告

如果有更好的方法,请告诉我:)

I'm using the inputRichText component for composing HTML-formatted messages in a system I'm working on.

I've encountered a problem, however. It seems the session times out, even when the user is working in the editor.

I tried setting the session timeout parameter in web.xml to 1 minute and started typing in the editor. After 1 minute the "User session expired" dialog box appeared. Is there any way to make the rich text editor component keep the session alive? It's pretty annoying to work on something for a while only to loose it to a session time out, event though you haven't been inactive.

This is the code I use to display the component in the page:

<ice:inputRichText height="250" toolbar="MyToolbar" customConfigPath="/FCKconfig.js" id="messageBody" value="#{bean.messageBody}" language="sv" saveOnSubmit="true" />

Thanks!

Edit:

I solved it using a periodic JavaScript calling into a servlet implementing the stuff outlined in this IceFaces JIRA report

If there's a better way, please let me know :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

是你 2024-10-08 14:52:27

我使用定期 JavaScript 调用 servlet 解决了这个问题,该 servlet 实现了 IceFaces JIRA 报告

它基本上允许 Servlet“接触”会话并因此保持会话活动。

如果有更好的方法,请告诉我:)

I solved it using a periodic JavaScript calling into a servlet implementing the stuff outlined in this IceFaces JIRA report.

It basically allows a servlet to "touch" the session and hence keep it alive.

If there's a better way, please let me know :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文