What is Visualforce View State?


Visualforce pages that contain a form component also contain an encrypted, hidden form field that encapsulates the view state of the page. This view state is automatically created, and as its name suggests, it holds the state of the page – state that includes the components, field values and controller state.
Note:
  • Minimize number of form on a page.  Use apex:actionRegion instead of using 2 or more forms.
  • Refine your SOQL to only retrieve the data needed by the page.
  • All public and private data members present in Standard, Custom and Controller extensions are saved.
  • The transient variables are not passed to view state and therefore not stored in View State.
For more information please refer to the link:

No comments:

Post a Comment

Differences between the Import Wizard and the Apex Data Loader

Salesforce CRM provides two tools for data migration—the Import Wizard and the Apex Data Loader. The Import Wizard   is designed for les...