How to Access Wrapper class variable in Visualforce page?

Sample Code:

Apex Code:

public class a
{

     //accessing wrapper class variable
     public w var {get;set}
    //wrapper class
    public class w
    {
        public String str;
    }
}


Visualforce page:

<apex:outputText value="{!var.str}"/>


Cheers!!!

No comments:

Post a Comment