Hi captain. Fix grid didn't update accordingly. I tried to append some data to it from a database. But it did not update on the grid unless I invoke an action event(I put it on my constructor).
Is there another way to do this aside from timer?
Please see attached picture.
Refreshs of the UI always come through a request/response - this means they must be triggered by the client side, e.g. by pressing a button or whatever.
There are two components to trigger some "inivisble" update:
1. TIMER - this is nothing else than a button pressing periodically itself after some period of time
2. LONGPOLLING - this is a component that listens to a server side event (via URL); if the event occurs then the ACTIONLISTENER of the LONGPOLLING component is triggered.
So dependent on the situation you must use the corresponding component: TIMER for updates "every two minutes", and LONGPOLLING for real-server-side-eventing.