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
Frank N.Frank N. 

Custom iterators on Visualforce page - cannot be used with repeats?

Hi,

 

To be able to have auto-sortable maps and extending its featureset, we have implemented a custom iterator. However, I was under the impression that they could be used in repeats. However, this does not seem possible or am I missing something? When I try this:

 

<apex:repeat value="{!customIterator}" var="strValue">
   {!strValue} <br/>
</apex:repeat>

 

It simply prints out the object, which makes sense but I would expect the repeater to identify the object as an iterator.

 

Best.

 

crop1645crop1645

Frank -- did you ever solve this? I have a similar objective and have seen posts dated 2011 that custom iterators can't be used as the value= attribute in any VF component like a repeat, dataTable, or pageBlockTable