Posts

Showing posts with the label How to resolve the View State Error ?

How to resolve the View State Error ?

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. In Visualforce, page state is persisted as a hidden form field that is automatically inserted into a form when the page gets generated. We call this the view state of the page. The view state captures the state of the page -- state of its associated controllers and extensions and the component tree on the page. The view state is posted back along with the other form data, which gives the server enough information to recreate the page state to which new changes can be applied . What is Contained in the View State: The data in the view state should be sufficient to recreate the state of the page when the postback is received. To do this, it stores the followin...