This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This not only cuts down on the visual annoyances. It also means that only the changes to the view need be sent, saving bandwidth and making it possible to service more simultaneous users.
An IDE is no substitute for an Intelligent Developer.
Joined: Jun 29, 2008
ok, its rather clean I think.
So, I cant find how to implement this: JScript timer calls 'reRender' on InputHidden to get a new data from bean. So then I want to get value from component and if it is TRUE, refresh table.
reRender isn't a command, it's an indicator. You need to fire an action in order to get the item(s) to refresh.
This makes sense because HTTP isn't a "push" protocol. It can only return data when someone or something asks for it. And in JSF, that means a response to an action request. Your action processor would normally update the model.
Here's how a commandButton does it:
Actually, RichFaces has some more direct options to initiate AJAX actions in the a4j tags.