• itsik edri 1
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hello Team,
Greetings,
I've created a class Employee with (empName,Salary,exp) and was trying to get the result in the VF page. 

public class ClassEmployee
{
    public string EmpName {set; get;}
    public Integer EmpSalary {set; get;}
    public Integer EmpExperience {set; get;} 
    public ClassEmployee()
    {
        EmpName = 'John';
        EmpSalary= 10000;
        EmpExperience = 2;
    }

}

<apex:page controller='ClassEmployee'>
    {!.EmpName}
    {!.EmpSalary}
    {!.EmpExperience}    
</apex:page>


As soon as i save and hit preview, i get the error 
"You have uncommitted changes to this VisualForce page. This preview will show the most recently committed version of this page, not your current changes." and the result of the preview is 

User-added image

User-added image

I would like suggestions on hot to get rid of the error. Not sure why the error keeps popping up even though the page is saved