JSF版本和AJAX服务器端处理

发布于 2025-02-13 17:46:06 字数 194 浏览 0 评论 0原文

新的JSF 4.0是否可以在每个AJAX请求后都能在服务器端重建完整视图? 这种重建非常耗时,这些页面上有许多组件。

还是存在一种避免在Ajax呼叫后建立整个视图的方法? 也许在服务器端的缓存组件,它们不会通过Ajax更改?

我一直在omnifaces中寻找解决方案,并尝试使用o:cache,但不起作用。 Ajax请求后的每一次都重建所有组件。

Will the new JSF 4.0 be free of the full view getting rebuild on server side after each ajax request?
This rebuild is very time consuming on pages with many components.

Or exists a way to avoid building the whole view after Ajax call?
Maybe cache components on the server side, they will not change by Ajax?

I was looking for the solution in Omnifaces, tried with o:cache, but does not work. Every time after ajax request all components are rebuild.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文