title: How does JSF 2 ConversationScope work?
body: <p>I have a JSF facelets page that displays a table of data depending on which page they are viewing. When I display page 1, I call the <code>view()</code> action method to get the data from the database for both pages and store it as a private member field of the bean (two arrays). I also call <code>conversation.start()</code> on the injected conversation instance in the <code>view()</code> method.</p>
  
  <p>When the user clicks the "next" button (<code>h:commandButton</code>) to go to page 2, I am executing a <code>next()</code> method to update the backing bean to point to array 2 so it will print out its contents. The problem is, array 2 no longer exists. I don't know why I am losing conversation scope. Any ideas?</p>
  
  <pre><code>//tells the object which page we are on, and thus what data to display.
  private int part = 1; 
  
  // These arrays are filled with data but conversation scope doesn't 
  // keep them on the next postback.
  private int[] part1 = new int[15], part2 = new int[15];
  </code></pre>