title: JSF 2 View Expired Weirdest Bug (Update - Occurs when saving state to server only)
body: <p>The bug is this - 
  I have several forms in my JSF application.
  If I activate AJAX calls outside a specific form for 20 clicks or more, I get a <code>"No Saved View State Could be found for the view identifier"</code> exception.</p>
  
  <p><strong>UPDATE 1</strong> This only occurs when the state is saved on the server. When this option is set, the problem doesn't occur: </p>
  
  <pre><code>&lt;context-param&gt;
      &lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;/description&gt;
      &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
      &lt;param-value&gt;client&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p><strong>END OF UPDATE 1</strong></p>
  
  <p>For example, suppose I have a form <code>A</code>, form <code>B</code>, form <code>C</code> in my app:
  (The actuall app is very complex, I will try to bring all the relevant information)</p>
  
  <pre><code>&lt;h:form&gt;
    &lt;h:commandButton value="A"&gt;
      &lt;f:ajax render="@form"/&gt;
    &lt;h:commandButton&gt;
  &lt;h:form&gt;
  
  &lt;h:form&gt;
    &lt;h:commandButton value="B"&gt;
      &lt;f:ajax render="@form"/&gt;
    &lt;h:commandButton&gt;
  &lt;h:form&gt;
  
  &lt;h:form&gt;
    &lt;h:commandButton value="C"&gt;
      &lt;f:ajax render="@form"/&gt;
    &lt;h:commandButton&gt;
  &lt;h:form&gt;
  </code></pre>
  
  <p>One more important factor, only one form is visible at each point in time, the other forms have <code>display:none</code>.
  Finally, All beans are session scoped.</p>
  
  <p>Now, The following clicks will cause the exception (For each row, the last click causes the exception)</p>
  
  <ol>
  <li>Ax20, B</li>
  <li>Ax19, B, C </li>
  <li>Ax10, Cx10, B</li>
  <li>Bx5, Cx5, Bx5, Cx5, A</li>
  </ol>
  
  <p>This will not cause an exception:</p>
  
  <ol>
  <li>Ax18, B, C, A.</li>
  </ol>
  
  <p>In other words, If a button in a form is not clicked in the last 20 clicks, the next time it is clicked, a <code>No save view state</code> exception is thrown.<br>
  All buttons in the same form are equivalent to the form, meaning, if <code>form A</code> had buttons <code>A1</code> and <code>A2</code> then the following would <strong>not</strong> cause an exception:</p>
  
  <ol>
  <li>A1x20, A2</li>
  <li>A1x19, B, A2</li>
  <li>A1, A2x20, B, A1</li>
  </ol>
  
  <p>Any Idea?!? This is driving me nuts.</p>