ViewState holds the state of a visualforce page including the components, field values and controller state.

learn more… | top users | synonyms

0
votes
2answers
27 views

Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 156.828KB

Following is the code in which I am getting a view state error : VF PAGE: <apex:page standardController="Technical_Verification__c" extensions="tvDocUpload" sidebar="false" showHeader="false" ...
0
votes
2answers
41 views

Maximum view state size limit (135KB) exceeded for Attachment

I am getting this error Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 143.125KB I am uploading the files in attachment object and showing them on one ...
2
votes
1answer
38 views

Why am I exceeding viewstate when using button+actionfunction, compared to using commandButton?

I have a very simple page: <!-- vf page --> <apex:page standardController="Challenge__c" extensions="upsertChallengeResponse" sidebar="false" tabstyle="ChallengesVF__tab" ...
0
votes
0answers
18 views

View state in Visualforce components

I am developing a VF page which will have two components. These two components will be placed multiple times on the same page with different input parameters. I am not sure how much view state will ...
0
votes
1answer
21 views

View state mode of an inline VF page

I have a visual force page which I have embedded in a custom object page layout. I have the developer mode and view state enabled in my user setting. But when I go to the record where I have embedded ...
0
votes
0answers
77 views

Fields modified on the page do not persist during pagination

Please help me with this solution, I'm trying to persist the value changed in the input field, but upon next(), last() pagination the value reset to the database value. I assume this is due to OFFSET ...
4
votes
0answers
36 views

how to see view state size for non system administrator profiles?

I am working on a product in which multiple profiles are applicable for same features (Data is coming according to profile and there are also some layout changes). I like to see the view state of page ...
2
votes
0answers
65 views

Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 137.641KB

I have a csv file who have 4000 records exists so it showing Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 137.641KB Error on VFpage this is my class public ...
0
votes
0answers
27 views

Get VF page/component instance from controller

The distinction here is that I want to access the very page/component that is binded to the controller (as opposed to calling Page.MyPage or Component.MyComp which instantiates a new object). To put ...
-1
votes
1answer
57 views

View state error when large number of records returned

I am getting view state error for my code. Apex class: public with sharing class zisQuoteSourceListOnQuoteDetailCon { public String zisQuoteId {get;set;} public String ...
1
vote
1answer
193 views

PageReference add Page.PageName

Here is the problem. I have one controller for both pages and I need to have that controller because of view state. I am passing values from home to about us page. I am getting two different behaviors ...
2
votes
0answers
46 views

Viewstate exceeded, but only in managed release version

I have a VF page in my managed package, and QA noticed that the viewstate blows up if more than 200 records were selected on the previous page (it's part of a wizard). When I attempted to reproduce in ...
0
votes
0answers
24 views

Why view state is not available for VF page with JQuery Plugins?

Whenever i use JQuery Plugin in VF page, view state disappears. Is there any alternate way to check view state while using Plugins. Thanks in advance.
0
votes
0answers
53 views

View State Error for Portal User

I am having visual force page and it accessed by both system administrator and portal user. Now the visual force page is working fine in System administrator and its not working and getting View ...
0
votes
0answers
26 views

not able to see updated fields from second tab in controller method (is it a problem with View State?)

I have two tabs "PERSONAL" and "EDUCATION, in one tab I am displaying few fields of Contact (studentContact variable in Controller) and in another tab I am displaying few other fields. Both the tabs ...
3
votes
1answer
140 views

Redirect in page action attribute

To model the situation, let's say that I have two visual force pages, which use the same controller. Let's call them PageStart and PageEnd. PageStart uses action attribute for apex:page element. ...
2
votes
4answers
204 views

Maximum view state and “transient” keyword

Good day Everyone, I am trying to upload a csv file. I don't have any issue when trying to upload a small csv file. But the problem is that, when I try to upload a large file I get an error in "...
5
votes
1answer
107 views

view state encryption for visualforce pages

Since visualforce pages are served over https connections, is view state encryption really required? How will this affect view state performance?
2
votes
0answers
240 views

apex:inputCheckboxes not retaining state inside apex:repeat

If the checkboxes are re-rendered, you can see that your input has been ignored. Whether re-rendered or not, the controller is unaware of your input upon form submission (it throws the exception that ...
2
votes
1answer
297 views

View state size limit & de-reference null for transient

I have below code to allow multiple file attachments to be inserted against a parent record id. But this results in either View state size limit exceeded (not all the time) or dereferencing null ...
10
votes
5answers
4k views

File Attachment Upload - Maximum View State Size limit (135kB)exceeded

I have used simple code to upload File. Now My page is giving me the following error: Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 838.719KB I ...
0
votes
1answer
143 views

View State error while creating generating an .CSV file

I am generating .CSV file from visualforce page. I am using same controller for 2 diffrent page Error that I am getting is "Maximum view state size limit (135KB) exceeded. Actual view state size for ...
2
votes
1answer
1k views

How does rendered/rerender work in Visualforce

This is not about walking out a particular scenario. It's all about my curiosity. I am just wondering how does rendered/rerender work behind the scene. My first understanding was it stores the related ...
2
votes
2answers
2k views

Error handling for View State of vf page in Apex Salesforce

I have one vf page in which I have a requirement to display huge data but as we know Vf page has View state Limit as 135 KB , hence after reaching this Limit salesforce throws Exception as "Maximum ...
5
votes
1answer
3k views

Accessing Non-Static Variables in Static Methods of a Visualforce Controller

I have a scenario where I have one Vf page called 'myVisualforce' and a custom controller 'myController'. In myController I have some non-static variables for example 'var1' and 'var2' and I have few ...
1
vote
1answer
515 views

Preview Email template within Visualforce page, some throw an error

I have a custom page to preview and render Email templates, now i came across that some (not many) templates will exceed the view state of the page ( max 137kb) As I need the function to replace text ...
1
vote
1answer
100 views

Shared Controllers with composition?

I was working on a multi-step wizard that had a "master page" that contained the the common components (next, previous, etc). To make things easier, the children were using the same controller as the ...
0
votes
1answer
197 views

How to minimize the view state of the custom visual force page.

How to minimize the view state of the custom visual force page. I have a custom VF page where I have a map that contains the list of sObject names. I need to make it available on the VF page to access ...
3
votes
1answer
433 views

What is the difference between initializing properties in shorthand vs constructor?

I thought these two samples would be functionally equivalent. But they behave differently: Initializing a property in the constructor: public with sharing class LeadController { public ...
2
votes
1answer
488 views

Viewstate Issue: Unable to clear attachments if there are any failures in the transaction

I have a simple page with an inputText, inputFIle and a command button component. InputText capture a decimal value. Clicking on save, I am clearing the attachment object but lets say something else ...
0
votes
2answers
2k views

How to query more than 50k records and display in visualforce page

I have a one vf page which displays list of all records in Account object using controller and I am using pagination to show all records it is working fine. But my Account records are crossed 50k ...
0
votes
1answer
374 views

View State and Heap Size too large

I am trying to execute this Apex code but getting view state size of 196 KB and Heap size error. I tried to find where the bulk of view state is going to and it seems to be this controller. Could ...
1
vote
1answer
320 views

Share (wizard-like) state between page with controller extension and page with controller

I have a custom VF page to create new or edit records of Type CustomObject__c. Via a Linker__c object such records can be related to other OtherCustomObject__c. To create such links I have a button ...
3
votes
1answer
637 views

How to see “View State” or development mode in inline visualforce page?

I have two inline visualforce pages embedded in Account layout. I need to see the view state of the vf pages and tried to analyze the page performance and the resources it is consuming. How to see "...
2
votes
1answer
483 views

View State issue on VF page

I have a VF page where i am displaying the records from a custom object using different SOQL search statement. But when the number of record is getting more i am getting an error of View State. Which ...
5
votes
1answer
352 views

Viewstate not updated with actionFunction render?

I need to refresh viewstate on a page to show the latest query results based on user entry, but it's not working. I have an inputText on the page for the user to enter a filter value. When that ...
2
votes
1answer
218 views

Does client side pagination contributes to Visualforce view state size or governor limits?

i am using client side pagination using datatable. Does it affect my view state size and other visualforce page governor limits?
6
votes
1answer
555 views

Visualforce Page allows to modify multiple records via inlineEditSupport. How to update only records that really changed

I am displaying many (up to hundred) records on a single page and allow users to modify fields of those records using . If the user clicks the "Save" command button I only want to update those record ...
2
votes
1answer
154 views

View State Problem

I am generating a csv file. For this i am using a visualforce page and its controller. I am able to generate csv. I am not able to see the view state of this page. Please tell me a way to view the ...
6
votes
1answer
2k views

View State maintained through URL on page reload

I have delete link against the record on the visualforce page.When I click on delete link record gets deleted and then reloads the page successfully but view state is maintained in the url.I don't ...
23
votes
1answer
2k views

Why is internal view state size counted against the developer?

Why is "internal view state" counted against the developer? If I have 4k worth of data in the page view state but the VF page structure uses a myriad of nested <apex: tags, such as <apex:repeat ...
9
votes
1answer
906 views

What is the maximum view state size limit when using Winter '14 Server-side view state?

I am trying to find information about the pilot Winter '14 feature which introduces server-side view state. Unfortunately at the moment it is not much more than two sentences about the feature ...
1
vote
2answers
323 views

viewstate on a custom page with tabs

I am experience some performance issue with my custom page. I have a custom page which has a tabpanel and each tab includes a page or components. Whenever I update some of fields it sends huge view ...
1
vote
1answer
348 views

Unusually large ViewState in Sandbox - debugging?

We have a VF page that in package/dev orgs (full of data) give around 40kb View State, well within the limit of 135kb. In one sandbox, though, where the managed package is installed, the page gives a ...
14
votes
2answers
4k views

Visualforce Response Size Exceeded

I've a Visualforce page that holds a large amount of data. I've used <apex:page readOnly="true"> to avoid the viewstate limit of 135 KB. However, I use a lot of data binding that makes the ...
5
votes
2answers
2k views

Debug ViewState Problems in Force.com Sites VF Pages

We're implementing a complex web application based on force.com Sites and ran into problems with the ViewState size of one of our pages. Now on the platform I would activate Development Mode and the ...
80
votes
2answers
15k views

How to reduce a large internal view state / what is in the internal view state?

I'm building an account search page that lets users select accounts and then pass them to other pages to perform various actions on them. Unfortunately users are reporting hitting the view state ...