Description of problem: When clicking on the url of the freshly created new member (like /rest/members/0) and backing back from the xml viewing, results in removed freshly added member. After refresh, or AJAX update (clicking on collapsiblePanel), the table is with all members again. This happens only for freshly added members. Version-Release number of selected component (if applicable): Richfaces 4.2.1.Final How reproducible: On AS: JBoss AS 7.1.1.Final, EAP 6.0.0.ER3. Steps to Reproduce: 1. Fill in correct data about member 2. Register him/her 3. Click on the REST url, generated for the particular added member 4. After loading new page, press browser back button 5. see that the new added member is not there
Brian Leathem <bleathem> made a comment on jira RF-12076 The problem is the browser is caching the page, and the ajax update doesn't refresh the cached copy of the page. The solution is to disable caching for the page by manipulating the response headers: {code} response.addHeader("Pragma", "no-cache"); response.addHeader("Cache-Control", "no-cache"); {code} This can be done in a ServletFilter, or in a JSF phase listener.
Brian Leathem <bleathem> made a comment on jira RF-12076 Implementing a filter or listener to disable the page cache will significantly increase the complexity of this example quickstart application without adding much benefit. As an alternate solution, I propose setting the _target_ attribute of the REST link to open up the REST pages in a new window/tab.
Brian Leathem <bleathem> updated the status of jira RF-12076 to Resolved
Brian Leathem <bleathem> made a comment on jira RF-12076 Changed the REST links to open up in a new window
Distributed as a part of WFK 2.1.0.GA release.
Juraj Húska <jhuska> updated the status of jira RF-12076 to Closed