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
jhelblingjhelbling 

apex:repeat and pagination

Hi all,

 

I have the following code in a VF Page in order to create a PDF :

 

<apex:repeat>
  <apex:outputtext>text 1</apex:outputtext>
  <apex:repeat>
     <apex:outputtext>text 2</apex:outputtext>
  </apex:repeat>
</apex:repeat>

 

My code will be used to issued PDF with the following structure :

 

Group 1
  SubGroup 1.1
  SubGroup 1.2
Group 2
  SubGroup 2.1
  SubGroup 2.2
Group 3
  SubGroup 3.1
  SubGroup 3.2

 

I'm encoutering some issues with the pagination. I don't want a main Group (like "Group 1") to be "cut" on 2 pages.

 

Does anybody know if the apex:repeat tag has some options in order to mention that a repeat loop has to overflow on the next page if not enough space is avaialble to display the content on the current page ?

 

Thank you very much.

 

jhelblingjhelbling

Hi all,

 

Coming back on this topic, would anybody have a suggestion ?

 

Any advice would be appreciated, thank you very much !