Vaadin 7 don't refresh UI after execution background thread (only if it takes more than 5 minutes)

后端 未结 2 437
自闭症患者
自闭症患者 2021-01-22 05:08

I\'m using Vaadin 7. In my application there\'s a table list and user could choice one or more items to elaborate. If execute button is clicked, UI component are disabled and tw

相关标签:
2条回答
  • 2021-01-22 05:39

    See https://vaadin.com/forum#!/thread/231272

    In short - in Vaadin 6.0 and 7.0, you cannot "push" a change from the server to the browser from a non-request thread. (There are plugins for v6, but not for v7.0)

    In Vaadin 7.1 (not yet released) this is possible. See https://vaadin.com/wiki/-/wiki/Main/Enabling+server+push for more details.

    0 讨论(0)
  • 2021-01-22 05:46

    You could use a component which refreshes periodically like the ProgressIndicator. Disable it after the thread has finished. That works for me.

    0 讨论(0)
提交回复
热议问题