January 14, 2018 by LanceShi
If you have followed sfdcinpractice for some time, you might have noticed that I haven’t started writing Visualforce guide for quite some time.
Why? Because I myself is sometimes confused, how should I talk about Visualforce, in which way I can make it both understandable, adhere to Salesforce and also up to date? With the introduction of lightning component, is Visualforce an outdated technology already? Should we put all the logic into front end? Should I still talk about actionSupport?
Those questions really bugged me for a while and that’s why I was not quite confident to write this guide.
However, when some front end developers turn to me on how to start writing Salesforce code, I suddenly realized Visualforce could be the best starting point, even better than triggers.
The mechanism of talking to database, view state, and considerations about front end vs back end, stateful vs stateless is the best way to understand how to write a web page in Salesforce way.
Even at the age of lightning component, I find learning Visualforce pages still quite worthy. You will have a much better understanding of how everything works and why it is working that way.
In this guide, I will try to explain how you write an Visualforce page and how to write it properly. Just follow me.