title: How to disable ViewState?
body: <p>I'm coming into Java world from MS and ASP.NET and looking for the similar to ASP.NET component-based HTML framework in Java. After reviewing tons of links in internet it looks like JSF2 (with facelets) is best match (is this true by the way? or there are other better choices?).</p>
  
  <p>The problem I'm encountering during evaluation right now is correct usage of JSF's view state. My final usage scenario would be a clustered WEB server and i'm NOT going to have any session/server-stored objects and i'm NOT going to use network bandwidth for dummy view state (see another guy's somewhat related problem here <a href="https://stackoverflow.com/questions/628570/jsf-tuning">JSF Tuning</a>).</p>
  
  <p>I took some JSF2 tutorial and after setting javax.faces.STATE_SAVING_METHOD = client got ViewState generated into HTML of 440 chars (omygod, page contains just 1 dummy text input and 1 submit button). In "POST on submit" I do need only text from text input (10 chars) and not that dummy view state (440 chars).</p>
  
  <p>So the question is - <b>Is it possible to disable view state in JSF2?</b></p>
  
  <p><b>Relevant links: </b></p>
  
  <ul>
  <li><p>Use-case in ASP.NET - "Disable View State for a Page": <br/>
  <a href="http://www.ironspeed.com/articles/Disable%20View%20State%20for%20a%20Page/Article.aspx" rel="nofollow noreferrer">http://www.ironspeed.com/articles/Disable%20View%20State%20for%20a%20Page/Article.aspx</a></p></li>
  <li><p>Not helpful answer on stackoverflow: <br/>
  <a href="https://stackoverflow.com/questions/121605/how-to-reduce-javax-faces-viewstate-in-jsf">How to reduce javax.faces.ViewState in JSF</a></p></li>
  </ul>
  
  <p><b>Update: Relevant links (from comments below): </b></p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/4390711/jsf-2-0-partial-session-saving-not-working/4391494#4391494">JSF 2.0 partial state saving does not seem to work</a></p></li>
  <li><p>"Stateless JSF": <a href="http://industrieit.com/blog/2011/11/stateless-jsf-high-performance-zero-per-request-memory-overhead" rel="nofollow noreferrer">http://industrieit.com/blog/2011/11/stateless-jsf-high-performance-zero-per-request-memory-overhead</a> </p></li>
  </ul>