I am trying to learn how to create a lightning page for accounts and decided to follow the example shown on this site https://www.forcetalks.com/blog/lightning-design-experience-in-visualforce-pages-with-lightning-css-framework/#comment-90

When I tried to copy the controller code on this site to create the controller I got the following error: Error: Compile Error: expecting a right parentheses, found ';' at line 7 column 22

Here is the code:

public with sharing class LightningDesignExperienceController{
  public Account acc {get;set;}
  public LightningDesignExperienceController(){
   Account[] accList = [SELECT id, name, accountsource, description, BillingStreet, 
                            FROM Account];
     acc = accList[0];
    acc = new Account();
 public void save(){
    upsert acc;
 public void reset(){
   acc = new Account();

I'm struggling to learn how to convert my visualforce pages to match lightning format and would really appreciate your help.


you are having > instead of > symbol in the if condition.. if you replace that, it should work fine



if(accList.size() > 0){

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.