While viewers of the Spring ’12 Preview Webinar saw the new single view state in action, I thought it best to give a overview here on the blogs for people to read as well.
A long standing best practice for Visualforce developers has been to keep the number of Apex form tags to a minimum – preferably only one. The reason for this is that multiple form components results in multiple viewstates which in turn add bloat and complexity to the pages. With Single View State, which will be a pilot with Spring ’12 requiring Salesforce to enable, multiple form components will have their viewstate reduced down to a single one. This feature, once enabled, will require no additional coding or setup – it’s not an attribute on the page or form component or anything like that … it is simply a performance gain for Visualforce in general.
I would still recommend developers think and test how they define their forms, however. There may be instances where placing forms in components now becomes more desirable because it will not result in a performance drop. There may also be existing limitations, like placing form components within a repeater component – where the outcome might not work as expected.
Spring ’12 is looking to be an excellent evolution of the platform and I’ll be interested to see as this pilot rolls out if we’ll see a sudden performance increase for existing implementations. Keep an eye out on trust.salesforce.com for when Spring ’12 will hit an instance near you, the release portal and this blog for more information. As usual, you can comment below or catch me on twitter @joshbirk.