File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • 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
  • 0
  • 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: 20368
43
Chrome Eclipse IDE Java Windows
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain the technique which you mentioned with AJAX.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic