Thx very much,
That happens in one of three parsers, invoked by filter. E.g.: org.ajax4jsf.webapp.nekko.NekkoParser.ViewStateFilter#insertResources(). All parsers implement org.ajax4jsf.webapp.HtmlParser interface, you can find them by invoking "Open hierarchy" command in your IDE.
Also these class code: org.ajax4jsf.context.ViewResources maybe helpful to know what resources are collected.
ah ok, so the filter is envolved and starts the insertion, i assumed the filter finally does the job but wasnt sure.
Hey thx very much, helped me a lot - me sure i can implement same behaviour for my app :-)
Btw: Richfaces is really nice.