Hi Laurie,
It seems a phaselistener is what you are looking for, it is pluggable and does not require any user configuration.
One thing you can do in a filter that you cannot in a phase listener is wrap the response object, so that you can intercept the output and modify it. ExtensionsFilter does this so it can postprocess and insert the resource tags.
The closest you could come in a phase listener would be to interject a ResponseWriter that buffered up the output -- then, after Render Response complete, goes in and does the same sort of injection followed by writing the modified response out to the real client. That should work, as long as *all* of the output were done via ResponseWriter. I suspect that will be true if you are using something like Facelets or Clay, but likely *not* to be true if you are using JSP pages.
Regards,
Cagatay,
Craig

