Ads

Friday, 3 May 2013

How to Access Wrapper class variable in Visualforce page?

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}"/>

No comments:

Post a Comment