• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF autorefresh data in table

 
Lukasz Makowski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello i have hard problem I need make table that show some list. But i need regenerate data every 10 seconds and show it. Maby somebody have simple solution of these problem?
 
Tim Holloway
Bartender
Posts: 18411
58
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Lukasz!

There are 2 principal ways in which this may be done. The first (and easiest) is to use the page refresh HTML META tag to cause the entire page to be updated every 10 seconds.

The second method allows you to minimize the "blink" effect by retaining the originally-uploaded page and updating only the changed parts. To do that, you need to code AJAX refreshing on the page.
 
Lukasz Makowski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought that some framework gave me simple solution for example IceFaces
 
Tim Holloway
Bartender
Posts: 18411
58
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct. These are extensions that use AJAX. Richfaces "poll" tag can be used that way.
 
Lukasz Makowski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tfx for prompt replay i try use push
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!