• SFSolution
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

controller:

 

public obj testobj {
       get {
        if(testobj==null)
         testobj = new obj();

         return testobj;
         }
        set;
         }


VF page:

i'm using like this:

<apex:inputfield value="{!testobj.field}"/>  

 

i'm not able to pass the values entered in this field to apex code as i want to store the value enterd here in other place. i'm getting null value while debugging. can somebody help me whether my getter setter method is correct or not?

  • August 16, 2012
  • Like
  • 0