Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 20606
60
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