IceFaces 中维护状态的问题

发布于 2024-09-10 07:11:02 字数 146 浏览 1 评论 0原文

我正在使用 EJB-3 &我在 JBoss 上的应用程序中的 IceFaces。 刷新页面时,数据会丢失&所有字段都变为空白。

在另一个使用struts的类似应用中,没有出现这样的问题。 IceFaces(视图处理程序/渲染响应等)有这个问题吗?

I am using EJB-3 & IceFaces in my application on JBoss.
On refreshing the page, the data gets lost & all fields becomes blank.

In another similar application where struts is used, no such problem occurs.
Is this problem with IceFaces(View-handler/Render-response etc).

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

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

发布评论

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

评论(2

递刀给你 2024-09-17 07:11:02

当 HTTP 请求涉及 GET 请求并且 bean 属于请求范围时,这是典型的情况。 struts 应用程序显然使用了会话范围的 bean。

This is typical when the HTTP request concerns a GET request and the bean is request scoped. The struts application was apparently using a session scoped bean.

最美不过初阳 2024-09-17 07:11:02

如果您需要通过请求范围内的页面刷新来保留数据,那么您的程序逻辑有问题。

就其本质而言,请求范围只能使用该范围内的数据..这意味着每次发出新请求时数据都会丢失。

您所指的另一个应用程序是否在构造请求时将某些内容添加到请求范围中?

If you need to retain data through a page refresh in request scope then something is wrong with your program logic.

By its very nature request scope would only have available to it data within that scope .. which means that the data is lost each time a new request is made.

Is the other application you are referring to adding something into the request scope when it constructs the request?

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