function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
leepoo biswalleepoo biswal 

why i am getting this kind of out put????

<apex:page controller="task2" >
             <apex:dataTable value="{!s}" var="aa" >

          <apex:column value="{!aa}" />
             <apex:pageBlockTable value="{!sdisplay}" var="vv">
                 <apex:column >
                     <apex:outputText value="{!vv}"/>  
<! when its {!vv} it shows                                                                            a0


but when ipu {!sdisplay} the out put is                            a0,b1,c3
                                                                                             a0,b1,c3                                                          !>


public class task2 {
 public list<string> s{set;get;}
 public list<string> sdisplay{set;get;}  
 public integer i{set;get;}
    public task2(){
            s=new list<string>();
            sdisplay = new list<string>();
        for(string ss:s){
            i++;                } 

Saravanan Gengan 9Saravanan Gengan 9
yes because sdisplay size is 3 with the values [a0, b1, c2]. It loops 3 times with same values. 
Saravanan Gengan 9Saravanan Gengan 9
A list of data displayed as a table within either an < apex:pageBlock > or < apex:pageBlockSection > component, similar to a related list or list view in a standard Salesforce page. Like an < apex:dataTable >, an < apex:pageBlockTable > is defined by iterating over a set of data, displaying information about one item of data per row. The set of data can contain up to 1,000 items, or 10,000 items when the page is executed in read-only mode.