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 /> over map collections of this data in the controller and <apex:outputLabel /> and <apex:inputText /> for data capture and the VF page renderer generates 132k worth of 'internal view state' why is that a problem which is enforced by a limiter?
- Why isn't the
135kview state limit measured against user data, which the developer truly has control over? Maybe a 15k user data limit would be more flexible to the developer regardless of the internal view state size. - Is there a black-box setting to allow a page to use more than 135k?
- Is there a future config option in the works to allow the developer to specify the limit they would expect to not exceed?
Map<Id, ApexClass>orMap<Id, Map<Id, ApexClass>>orMap<Id, Map<Id, List<ApexClass>>>structures directly via controller getter and setter shorthand notation, where ApexClass is an object which has members of its own and may or may not include an sObject reference within it (used with direct bindings in the page). Are you suggesting that the structure exposed directly from the controller class isn't aMap, but instead an instance of a wrapper class with these types of structures within them and it will produce less view state data? – Mark Pond Nov 05 '13 at 20:10