Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p><em>I noticed that not even the bean constructor was called.</em></p> </blockquote> <p>The page is apparently being requested from browser cache instead of straight from the server. Performing a hard reload (Ctrl+F5) should let the browser to actually send a HTTP request to the server. You can track this in browser's builtin HTTP traffic monitor (press F12 in Chrome/Firefox>=23/IE>=9).</p> <p>You should actually be instructing your browser to <strong>not</strong> cache restricted pages. You can achieve that by creating a simple servlet filter with the following logic in <code>doFilter()</code> method:</p> <pre><code>@Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletResponse response = (HttpServletResponse) res; response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1. response.setHeader("Pragma", "no-cache"); // HTTP 1.0. response.setDateHeader("Expires", 0); // Proxies. chain.doFilter(req, res); } </code></pre> <p>If you map this filter on the an URL pattern covering restricted pages (perhaps the entire <code>/faces/*</code>?) then it should solve the problem for you:</p> <pre><code>&lt;filter&gt; &lt;filter-name&gt;noCacheFilter&lt;/filter-name&gt; &lt;filter-class&gt;com.example.NoCacheFilter&lt;/filter-class&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;noCacheFilter&lt;/filter-name&gt; &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt; &lt;/filter-mapping&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload