I\'m a beginner in JSF and I´m having the following problem: I have a view with a backbean that I fill some values to perform a search and display results. When I go out and r
You're likely facing a page from the browser cache. You need to instruct the browser to not cache the JSF pages. This is the best to be achieved by a Filter
which is mapped on an URL pattern of interest (*.jsf
for example) and does the following job in doFilter()
method.
HttpServletResponse hsr = (HttpServletResponse) response;
hsr.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
hsr.setHeader("Pragma", "no-cache"); // HTTP 1.0.
hsr.setDateHeader("Expires", 0); // Proxies.
chain.doFilter(request, response);