Hi!
the solution is far from perfect.
For me, every solution requiring buffering is far from perfect. With JSF
1.1 nothing else worked .... except like the StreamingAddResource or
DojoAddResource, but they have their own drawbacks.
For JSF1.2 this is why I suggested in another thread to introduce
something like a ResourceInfoProvider interface which a renderer has to
implement and then, after creating the view and before actual rendering
scan the tree and ask every component about the resources it requires.
Then, with the help of specific component we can render the
stylesheet,script, etc stuff without buffering.
Ciao,
Mario