I am trying to create a dynamic visual force page and am referring https://developer.salesforce.com/page/Dynamic_Visualforce_Components
I am getting the below error when trying to save the class:
UNKNOWN_EXCEPTION: core.apexpages.quickfix.QuickFixException: Component c:apex does not exist
Below is my code:
public with sharing class CreateSurvey {
public List<Component.Apex> components;
public Component.Apex.PageBlock CreateSurveyPage() {
Component.Apex.PageBlock surveyBlock = new Component.Apex.PageBlock();
}
}
I am not able to figure out the issue. Any help will be appreciated.
Thanks.