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
yaramareddy radhikayaramareddy radhika 

can any body tell me the real time use of 'apex:repeat' tag in visual force?

Leo10Leo10
Hi yaramareddy radhika
You can refer this link
http://sfdcsrini.blogspot.com/2014/06/how-to-use-apexrepeat-in-visualforce.html

Thank you
yaramareddy radhikayaramareddy radhika
Thank you for your response,

I already read this, but I didn't understand.
Leo10Leo10
Hi
check this example given below 

Class:
public class MyController{
    List<AttachmentCallsWrapper> att_calls {get;set;}

    public MyController(){
        this.att_calls = new List<AttachmentCallsWrapper>();
        //fill list
    }

    public class AttachmentCallsWrapper {
        public Call__c call {get;set;}
        public Attachment att {get;set;}

        public AttachmentCallsWrapper(Attachment a, Call__c c){
            this.call = Call__c;
            this.att = a;
        }
    }
}

VFP:
<apex:repeat value="{!att_calls}" var="ac">
    <apex:outputText value="{!ac.call.Field}"/>
    <apex:outputText value="{!ac.att.Field}"/>
</apex:repeat>

All values from the controller will get repeat by using this visualforce page