Access Wrapper Class Variable in Visualforce Page #inSalesforce

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;}
    }
}


<apex:page controller="SampleController">
    <apex:outputText value="{!obj.Name}"></apex:outputText>
</apex:page>

Comments