Seam 如何在客户端浏览器中存储对话状态?
Seam 的文档说明了会话状态 - 请参阅 link 最后一行 - 可以配置为存储在客户端浏览器中,而不是 servlet 会话中。谁能告诉我:
- 这个配置是如何设置的?
- Seam 实际上如何在浏览器内部存储会话状态?
Seam's documentation says that conversational state - see link last line - can be configured to be stored in the client browser as opposed to the servlet session. Can anyone tell me:
- How is this configuration set?
- How does Seam actually internally store the conversational state in the browser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Dan Allen,《Seam in Action》一书的作者和红帽 Seam 核心开发人员,指出
由于对话存储在会话中,因此必须满足两个要求:
据我所知,JSF 树可以存储在客户端,通过 web.xml 上下文参数启用
但使用这种类型时请记住带宽问题配置
Dan Allen, Author of Seam in Action book and red hat Seam core developer, states
Since conversations are stored in the session, two requirements must be met:
As far as i know is that The JSF Tree can be stored in The client side, enabled through web.xml context param
But keep in mind bandwidth issues when using this kind of configuration
你确定你读对了吗?您能指出说明这一点的文档吗?
我看到seam可以在客户端存储任何内容的唯一方法是通过cookie。但是 Seam 除了用户会话之外不使用任何其他东西,如果您进行身份验证,您将获得该会话。 (也称为 jsession id)
Are you sure you have read correctly? Could you point to the documentation that states that?
The only way I can see that seam can store anything on the client is through cookies. But Seam does not use anything else other than the user session, which you will get if you authenticate. (Also known as jsession id)