I have the following VF Component which uses a dynamicComponent tag inside of it.
<apex:component controller="myController">
<apex:attribute name="identity"
type="String"
assignTo="{!identity}"
description="The identity given to this component so the page can easily get access to it" />
<apex:dynamicComponent componentValue="{!headerComponent}" />
</apex:component>
According to the VF documentation the order of evaluation inside the component is as follows:
1. constructor methods run.
2. attributes expressions are evaluated.
3. executes any assignTo attributes.
4. evaluates action method and executes all other method calls
However, I noticed that headerComponent getter will be called prior to component attribute assignments. In other words the identity string is null when I try and reference it in getheaderComponent.
This means, that I can't obtain the assigned data that is vital for rendering of my headerComponent. Is it a bug or feature?