Run attached example and click command link. Component CSS is not added to the page after that.
Reproducible when partial state saving is off.
Yes, I checked it and the problem is the component resource facets are marked as transient. Long time ago it was discussed on jsr-314-open list to mark them, but do that breaks ResourceDependency, because those resources added to the view are not restored.
I tried other altenatives, but after thinking a lot it is better to do not mark them and instead mark all resources added as transient according to the case.