You need to sign in to do that
Don't have an account?

how can i display records using apex:repeat for custom objects
HIII.
i have an custom object based on the soql i have to display the results
how to write a repeat controller to show results on the vf page
plz help me
pls refer this link http://blog.jeffdouglas.com/2010/04/02/visualforce-row-counter-for-iteration-components/.
It may useful.
<apex:repeat> is used to iterate the list in VF page, value attribute of this tag should have list as value.
Find below a sample code :
<!-- Page: -->
<apex:page controller="repeatCon" id="thePage">
<apex:repeat value="{!strings}" var="string" id="theRepeat">
<apex:outputText value="{!string}"/><br/>
</apex:repeat>
</apex:page>
/*** Controller: ***/
public class repeatCon {
public String[] getStrings() {
return new String[]{'ONE','TWO','THREE'};
}
}
Hope this helps.