Help

Controls

Switch Workspace

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Comparing current revision with historical revision 1.
Document History: Users are seeing a ViewExpiredException when clicking on stale pages. How can I prevent this?
Current revision:
2
Parent:
JSF and Facelets
Created On:
13. Jun 2009, 02:09 (dan)
Last Modified On:
13. Jun 2009, 07:58 (christian)
Historical revisions:
1 13. Jun 2009, 02:10 (christian) ShowDiff
0 (Initial Revision) ShowDiff

From line 16 changed to line 16:
If you have a page that contains a form that the user may wait more than a day to submit, then you have a stateless view. In this case, you should make the form a regular JSF form and process the form result as though it were a GET request. You can either invoke a page action that processes the input before rendering or you can use Seam's bookmarkable command components (|<s:link>| or |<s:button>|) with an action. Page actions are the preferred approach.
If you have a page that contains a form that the user may wait more than a day to submit, then you have a stateless view. In this case, you should make the form a regular HTML form (not |<h:form>|) and process the form result as though it were a GET request. You can either invoke a page action that processes the input before rendering or you can use Seam's bookmarkable command components (|<s:link>| or |<s:button>|) with an action. Page actions are the preferred approach, although make sure your application is not vulnerable to [=>wiki://64678].