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

Should I use <apex:repeat>? Please help, I'm lost!

SO, I'm trying to build a case multi-edit page that will be using a case list to define the cases shown when the custom link is selected.


here is my existing code, which works great, but will only return 20 rows, regardless of how many are in the list:



<apex:page standardController="Case" 
           tabStyle="Case" sidebar="false">
  <apex:form >
    <apex:pageBlock >
      <apex:pageMessages />
      <apex:pageBlockButtons >
        <apex:commandButton value="Quick Save" 
        <apex:commandButton value="Save" 
      <apex:pageBlockTable value="{!cases}" 
        <apex:column value="{!c.casenumber}"/>
        <apex:column value="{!c.subject}"/>
        <apex:column headerValue="Upgrade Status">
         <apex:inputField value="{!c.Upgrade_Status__c}"/>
        <apex:column headerValue="SP Installed">
         <apex:inputField value="{!c.SP_Installed__c}"/>
        <apex:column value="{!c.SP_To_Install__c}"/>
        <apex:column headerValue="Status">
          <apex:inputField value="{!c.status}"/>

 I'm not particularly sure how I should be using the <apex:repeat> tag, can someone lend some assistance, seems like it should be easy enough but it's stumping me.





anil 007anil 007

apex:repeat  sample example try this example



<apex:page controller="repeatCon" id="thePage">

<apex:repeat value="{!strings}" var="string" id="theRepeat">

<apex:outputText value="{!string}" id="theValue"/><br/>



/*** Controller: ***/ 

public class repeatCon {

public String[] getStrings() {

return new String[]{'ONE','TWO','THREE'};



Thanks for the help everyone, but after thinking about it more, I would rarely be dealing with lists of over 40 or 50 cases.  I decided to implement a paging solution.


Paging is native to VF since 09.  See this post for more info...