aspose file tools
The moose likes JSF and the fly likes refresh a JSF with database link!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "refresh a JSF with database link!!!" Watch "refresh a JSF with database link!!!" New topic
Author

refresh a JSF with database link!!!

Sonal Sharma
Ranch Hand

Joined: May 13, 2006
Posts: 62
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

Joined: Feb 05, 2001
Posts: 17224
    
    1

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Sonal Sharma
Ranch Hand

Joined: May 13, 2006
Posts: 62
Thanks Mark
Sonal Sharma
Ranch Hand

Joined: May 13, 2006
Posts: 62
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: refresh a JSF with database link!!!
 
Similar Threads
Frame set developing in JSF
jsf datatable
edit and delete operations Datatable In MY faces
best java data type to use for display of records on jsf .xhtml page
Migrating my app to JSF