Hello all,
I consider using JSF for a web application instead of servlets.
However, an important demand is that a certain page refreshes itself after a certain interval, thus always displaying the most up-to-date information.
With Servlets I implement an automatic refresh every 5 Minutes as follows:
res.setHeader("Refresh", "300");
This is possible because in the relevant page the URL contains the parameters because Http GET is used.
I read that with JSF POST is the intrinsic way to submit data.
Now I cannot really imagine if such an refresh is possible with JSF.
A short feedback to my question would be great.
Best regards
Jan
-
Automatical Refresh - feasible with JSF? (2 messages)
- Posted by: Ed O Neill
- Posted on: August 30 2005 04:42 EDT
Threaded Messages (2)
- Refreshing in JSF by Tom Cole on September 04 2005 20:12 EDT
- POST data resent by refresh-tag? by Ed O Neill on September 06 2005 07:55 EDT
-
Refreshing in JSF[ Go to top ]
- Posted by: Tom Cole
- Posted on: September 04 2005 20:12 EDT
- in response to Ed O Neill
This totally depends on the delivery technology you use for your JSF. If you're using JSP, then you could simply put a META Refresh tag in your JSP. -
POST data resent by refresh-tag?[ Go to top ]
- Posted by: Ed O Neill
- Posted on: September 06 2005 07:55 EDT
- in response to Tom Cole
Tom, thanks for your answer.
Yes, JSP will be the presentation layer.
However, my experience with refreshing a site that received POST parameters is the following:
Pressing F5/Refresh-Button I'm asked if I want to resend the POST data again, I agree and the page is refreshed. Fine.
Adding the refresh-Tag to the site does *not* resend the POST data that was submitted to this site.
I heard of the PRG (Post-Redirect-Get) pattern. Maybe that is applicable to my case.
Best regards
Jan