Related to this question How to keep components out of the Visualforce view state when they are not needed?, I have many apex:dynamicComponents in my page that I want to put slightly different content into.
It looks like I will need a controller method per variation e.g.:
public ApexPages.Component getMedical_top_extension() {
return extension.rootComponent(Section.Medical, Position.top);
}
referenced in the page as e.g.:
<apex:dynamicComponent componentValue="{! Medical_top_extension }"/>
Or is there a way to pass a parameter to a single controller method instead? I am assuming not as e.g. apex:param makes no mention of apex:dynamicComponent
.