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
saimadhusaimadhu 

how to display loop values in a visualforce page

Controller:

List<Status_Option__c> statop = new List<Status_Option__c>([select     Name,Current_Build_Status__c,Next_Build_Status__c
from Status_Option__c
where Product_Group__c = :productId ]);
system.debug('list size is:'+statop.size());

public string var1{get;set;}

public string var{get;set;}


for(integer i=0;i<statop.size();i++)
{
system.debug('status name is'+statop.get(i).Name);
var1 = statop.get(i).Name;

for(integer j=0;j<statop.size();j++)
{
if(i==j)
continue;
else
system.debug('status name is'+statop.get(j).Name);
var = statop.get(j).Name;
}
}

in a visual force page i just want to print like this

 

     {!var1}

                 var

                 var

                var

              var

  {!var1}

                 var

                 var

                var

              var

like this it should display 3 times if l

 

please somebody help me