Skip to main content
deleted 16 characters in body
Source Link
Samuel De Rycke
  • 9.6k
  • 8
  • 46
  • 73

I have the following code, and I would like to render as PDF: <--- general Page --> <apex:page controller="MyController"> <apex:repeat value="{!pagesToShow}" var="page">
<apex:include pageName="{!page}" /> </apex:repeat> </apex:page>

<apex:page controller="MyController">
    <apex:repeat value="{!pagesToShow}" var="page">     
            <apex:include pageName="{!page}" />
    </apex:repeat>
</apex:page>

templatesToShow is a list in the controller that holds VF pages.

This doesn't works because apex:include is looking the page variable in the controller. But It's not here because it's within the repeat scope.

Any advice to get dynamic page showing? Thanks.

Regards.

I have the following code, and I would like to render as PDF: <--- general Page --> <apex:page controller="MyController"> <apex:repeat value="{!pagesToShow}" var="page">
<apex:include pageName="{!page}" /> </apex:repeat> </apex:page>

templatesToShow is a list in the controller that holds VF pages.

This doesn't works because apex:include is looking the page variable in the controller. But It's not here because it's within the repeat scope.

Any advice to get dynamic page showing? Thanks.

Regards.

I have the following code, and I would like to render as PDF:

<apex:page controller="MyController">
    <apex:repeat value="{!pagesToShow}" var="page">     
            <apex:include pageName="{!page}" />
    </apex:repeat>
</apex:page>

templatesToShow is a list in the controller that holds VF pages.

This doesn't works because apex:include is looking the page variable in the controller. But It's not here because it's within the repeat scope.

Any advice to get dynamic page showing?

Source Link
junjs
  • 43
  • 1
  • 5

Include page dynamically

I have the following code, and I would like to render as PDF: <--- general Page --> <apex:page controller="MyController"> <apex:repeat value="{!pagesToShow}" var="page">
<apex:include pageName="{!page}" /> </apex:repeat> </apex:page>

templatesToShow is a list in the controller that holds VF pages.

This doesn't works because apex:include is looking the page variable in the controller. But It's not here because it's within the repeat scope.

Any advice to get dynamic page showing? Thanks.

Regards.