Access Wrapper Class Variable in Visualforce Page #inSalesforce
public class SampleController{
public Wrapper obj {get;set;}
public SampleController(){
obj = new Wrapper();
obj.Name = 'SampleName';
}
public class Wrapper{
public String name {get;set;}
}
}
public Wrapper obj {get;set;}
public SampleController(){
obj = new Wrapper();
obj.Name = 'SampleName';
}
public class Wrapper{
public String name {get;set;}
}
}
<apex:page controller="SampleController">
<apex:outputText value="{!obj.Name}"></apex:outputText>
</apex:page>
<apex:outputText value="{!obj.Name}"></apex:outputText>
</apex:page>
Comments
Post a Comment