aspose file tools*
The moose likes JSF and the fly likes Server side data push in a java spring-jsf2 web project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Server side data push in a java spring-jsf2 web project" Watch "Server side data push in a java spring-jsf2 web project" New topic
Author

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

Swarnajith Fernando
Greenhorn

Joined: Jan 27, 2011
Posts: 7


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.


Software Engineer(BSc.(Hons)in Computing - UK)J2EE/Spring/Hibernate/PHP - "Knowledge is Power When Applied"
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19718
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Swarnajith Fernando
Greenhorn

Joined: Jan 27, 2011
Posts: 7

Can you please explain the technique which you mentioned with AJAX.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server side data push in a java spring-jsf2 web project