2. Transient Keyword – View State – Visualforce – Salesforce salesforce by Nitish Singhal Transient Keyword – View State – Visualforce – Salesforce We can use transient keyword with apex class’s instance variables when we want that values of those variables should not be transferred as part of the view state of visualforce page. This helps us reducing the view state of visualforce page. As we all know that, there is a limit of 135KB of view state and many times this “ Transient ” keyword helps us to reduce the view state. There are certain points that we should consider while using the transient keyword: The value of transient variable is only transferred from controller to visualforce page but not as part of view state. As the value is not part of view state, the changed value of that variable is not transferred back from visualforce page to controller when a new request is made by clicking a button or link. We should use the transient keyw...
Popular posts from this blog
Lightning Visualforce .NET Framework Coding Thoughts Integration Developer Certification Apex Code Sara Has No Limits Good Programmers Evaluate, Simplify, Automate and Document About No Limits About Sara Morgan Nettles Top 5 Tips for Improving Visualforce Pages July 14, 2014 7 Comments #1 – Reduce or eliminate view state View State is not your friend when it comes to page performance, so if you do not need it (as in your page does need to persist data between page requests), then do not use it at all. This is especially true for pages that will run on the Salesforce1 mobile platform!!! How do you not use it all? Do not include the <apex:form> tag unless you absolutely have to . This tag should only be used when you are accepting input from the user, so if you are only displaying data to the user, you should not have a for...
Comments
Post a Comment