• Post Reply Bookmark Topic Watch Topic
  • New Topic

refresh a JSF with database link!!!  RSS feed

 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a JSF application having a database link like a table is fetching the data from derby database.I am using Netbeans with Visual web pack.Just want to know that the problem is the database gets updated in the background after every 5 seconds so I want to display the recent data to the user by refreshing the JSF page.If some one has some code or tutorial to accomplish this task.Please help me.

Thanks and regards
--Sonal
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds like a job for Ajax. So maybe some Ajax JSF library has like a timer JSF component.

Like Richfaces/A4J has this polling component

http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/poll.html

Mark
 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark
 
Sonal Sharma
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mark,
I am having one more query like if we use meta tag with refresh as in jsp. Will it not work?or it will create too many database connections and consume the memory?
--Sonal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!