title: JSF session scope beans with Tabbed browsing
body: <p>We have the following problem...</p>
  
  <p><strong>Application's environment:</strong></p>
  
  <p>JSF, Richfaces, a4J</p>
  
  <p><strong>Consider having the following scenario:</strong></p>
  
  <ul>
  <li>The user logs into the system</li>
  <li>The user navigates to a new page which consists of an a4j form containing a4j components, the user fills into the form but doesn't submit.</li>
  <li>The user opens a new Tab and opens the same URL and fill in the new form with new data</li>
  <li>The user returns to his first Tab and submits the information (Note: All beans are defined are session scope)</li>
  </ul>
  
  <p><strong>Result:</strong></p>
  
  <p>The submitted information is the information from the second Tab but submitted from the first Tab, which is expected as long as the beans are defined as session scope.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>We need to get the behavior of a request scope (i.e: dealing with new tab as a new request although the bean is defined as a session scope). </p>
  
  <p><strong>Notes:</strong></p>
  
  <p>When defining the bean scope as a request scope the partial Ajax response from individual components in the same form, resets the other components since they are not submitted yet.</p>
  
  <p>Any suggestions ?</p>
  
  <p>--</p>
  
  <p>Thanks so much</p>