如何在Vaadin和Spring Boot中开发动态多选项卡?

huangapple go评论63阅读模式
英文:

How to develop dynamic multiple tabs in vaadin and spring boot?

问题

正如我们几乎在每个浏览器中看到的那样,有一个用于多个浏览选项卡的功能。对于Web应用程序开发人员来说,开发这样一个功能是如何可能的?在浏览不同选项卡时,我如何将用户状态保留下来?

英文:

As we've seen in almost every browser a feature for multiple browsing tabs. How is it possible for a Web-application dev to develop such a feature? How can I store the user state as it is while navigating through different tabs?

答案1

得分: 2

HTTP会话在指向同一应用程序的所有浏览器选项卡之间共享。在Spring Vaadin应用程序中,您可以使用“会话”范围的Bean来存储对每个浏览器选项卡可用的状态。

英文:

The HTTP session is shared between all browser tabs that point to the same application. In Spring Vaadin app, you can use a session scoped Bean to store state that is available to each browser tab.

huangapple
  • 本文由 发表于 2020年9月29日 13:43:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/64113571.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定