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
heuyeheuye 

is it allowed to nest apex:repeat?

what is the max depth? i tried 2,it's OK

 

eg:

<apex:repeat>

    <apex:repeat>

    ...

    </apex:repeat>

</apex:repeat>

Best Answer chosen by Admin (Salesforce Developers) 
aballardaballard

There is no specific limit.  Sooner or later the combinatorics of multiple nested iterations will run you into some limit on page size or viewstate size or processing time. 

If what you are trying to produce is a reasonable page, it will work. 

All Answers

bob_buzzardbob_buzzard

I haven't come across anything that mentions a max depth.

 

I've nested about 7 deep to produce a complex HTML table structure without any problems.

aballardaballard

There is no specific limit.  Sooner or later the combinatorics of multiple nested iterations will run you into some limit on page size or viewstate size or processing time. 

If what you are trying to produce is a reasonable page, it will work. 

This was selected as the best answer