title: com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews
body: <p>Mojarra Implementation of JSF 2 has the following context params:</p>
  
  <ul>
  <li><code>com.sun.faces.numberOfViewsInSession</code> (default is 15)</li>
  <li><code>com.sun.faces.numberOfLogicalViews</code> (default is 15)</li>
  </ul>
  
  <p>What is the difference between them? The documentation doesn't speak much about these. My app was having trouble with <code>ViewExpiredException</code> for some pages, but after we bumped these settings to a (much) higher value, we stopped having problems.</p>
  
  <p>My app is a financial, form-heavy, ajax-enabled app (some screens have 50+ inputs, with the option of adding alot more data/inputs via AJAX).</p>
  
  <p>what can be the cause for this behaviour? I understand that the first param defines the number of "pages" that are kept in session, which may be useful for the back button, but my use cases that trigger the <code>ViewExpiredException</code> don't use the back button. What does the second param refer to? If I stay in the same screen but keep adding alot of data via AJAX, does this cause the need of a larger number of logical views for page?</p>