I might have this all wrong but thought it's worth a mention...

When org.apache.tapestry5.internal.transform.ImportWorker adds stack
advice to the setupRender() method, it calls invocation.proceed()
multiple times, once per added stack:

line 119:

private MethodAdvice createImportStackAdvice(final String[] stacks) {
    return new MethodAdvice() {
        public void advise(MethodInvocation invocation) {
            for (String stack : stacks) {
                javascriptSupport.importStack(stack);

                invocation.proceed();
            }
        }
    };
}

Should not invocation.proceed() be outside the for loop, or does it not matter?

I was just poking around looking for examples of adding advice to
lifecycle methods.

Steve.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to