You need to sign in to do that
Don't have an account?
core.apexpages.quickfix.QuickFixException: Unknown property 'DynamicController.tmp
Hi,
I have developed some visualforce pages which I want to include in main page. If I pass manual pagename or create getter for each page, apex:include is working fine but for below code, I am getting QuickFixException.
Please help!
Apex Class code
public with sharing class DynamicController {
public List<String> getComponentList() {
List<String> cList = new List<String>();
cList.add('page1');
cList.add('page2');
return cList;
}
}
Visualforce Page
<apex:page controller="DynamicController" >
<apex:repeat value="{!ComponentList}" var="tmp">
<apex:include pageName="{!tmp}"/>
</apex:repeat>
</apex:page>