>>>>> On Wed, 12 Dec 2012 14:41:13 -0800, Neil Griffin <neil.griffin_at_portletfaces.org> said:
NG> The following test code worked with Mojarra 2.2.0-SNAPSHOT -- the syserr appeared in the Tomcat console and the <head>...</head> section contained the jsf.js resource in the rendered markup...
NG> @ListenerFor(systemEventClass = PreRenderComponentEvent.class)
NG> @ResourceDependency(library = "javax.faces", name = "jsf.js", target = "head")
NG> public class MyRenderer extends RendererWrapper implements ComponentSystemEventListener {
NG> private Renderer wrappedRenderer;
NG> public MyRenderer(Renderer renderer) {
NG> this.wrappedRenderer = renderer;
NG> }
NG> public void processEvent(ComponentSystemEvent componentSystemEvent) throws AbortProcessingException {
NG> System.err.println("!@#$ MyRenderer.processEvent() componentSystemEvent=" + componentSystemEvent);
NG> }
NG> @Override
NG> public Renderer getWrapped() {
NG> return wrappedRenderer;
NG> }
NG> }
Looks good to me. I'd like to incorporate this into our automated test
suite. Can you please send me the war and source under separate cover?
Thanks,
Ed
--
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage: | http://ridingthecrest.com/