Web Environment - Force client refresh
Posted: Wed Mar 04, 2020 2:56 pm
Hi,
We're trying to add a component to the web interface to display information on long running tasks. We've added a button to the toolbar (as described here https://doc.sibvisions.com/vaadin/custo ... lication?s[]=toolbar), this button will display small label with the number of running tasks and a tooltip with a short description for each task running. If the user presses the button a screen is open with more information on running tasks.
This seems to work correctly, we already have a prototype working. Now we need a mechanism to refresh this information from time to time.
For this we are trying to use getFactory().invokeInThread after user login and on this thread pool the server from time to time. The problem is that this sees to update the text/tooltip of the menu button on server side only. The status of the button only gets refreshed on the client side when user opens a new screen/etc.
Is there any way on server side to force a client side refresh of a component?
Thanks for the help.
N.
We're trying to add a component to the web interface to display information on long running tasks. We've added a button to the toolbar (as described here https://doc.sibvisions.com/vaadin/custo ... lication?s[]=toolbar), this button will display small label with the number of running tasks and a tooltip with a short description for each task running. If the user presses the button a screen is open with more information on running tasks.
This seems to work correctly, we already have a prototype working. Now we need a mechanism to refresh this information from time to time.
For this we are trying to use getFactory().invokeInThread after user login and on this thread pool the server from time to time. The problem is that this sees to update the text/tooltip of the menu button on server side only. The status of the button only gets refreshed on the client side when user opens a new screen/etc.
Is there any way on server side to force a client side refresh of a component?
Thanks for the help.
N.