This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server side data push in a java spring-jsf2 web project

 
Swarnajith Fernando
Greenhorn
Posts: 7
Java PHP Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

How do I implement a server side data push in a java spring jsf2 dynamic web project with jquery functions working on front-end web page.
I want to get server side updates without a user interaction into the facelets xhtml front end page which should display cell by cell updates to a html table.
Can anyone please explain with a working code example.
Thanks in advance.
 
Rob Spoor
Sheriff
Pie
Posts: 20526
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless both your browser and server support WebSockets, the server cannot push anything. The best you can do is use a timer to regularly use AJAX to request new data from the server.
 
Swarnajith Fernando
Greenhorn
Posts: 7
Java PHP Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain the technique which you mentioned with AJAX.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic