[SalesForce] How to display List> in Visual force page

In controller I will get the data as List<List<String>>. How can I display it on Visual force page?

And that List<List<String>> is populated based on user input(Checkbox values).

If it's just List<String> then I could able to display them using datalist

List<String> alist;

then I can use this to display them

<apex:dataList value="{!alist}" var="c">
    {!c}                        
</apex:dataList>

Best Answer

If you have a list of list "List < List < String>>" you will need to do something like :

<apex:repeat value="{!alist}" var="l">
    <apex:dataList value="{!l}" var="c">
          {!c}
    </apex:dataList>
</apex:repeat>
Related Topic