Activity Forums Salesforce® Discussions Which one to use and why - JavaScript Remoting and Remote Objects? Reply To: Which one to use and why - JavaScript Remoting and Remote Objects?

  • shariq

    Member
    September 19, 2018 at 9:03 pm

    Hi,

    Well, here are few advantages of “Visualforce Remote Objects” :

    1. No need to write Controllers, Everything can be done in Visualforce only.
    2. As @RemoteAction annotated methods needs to be static so you had to take special precaution as it didn’t
    3. supported Viewstate. This hurdle is completely removed now.
    4. No need to write Test Class now, as no Controller is involved.

    Hope this helps.