baseclass cleanupRender() method called but @CleanupRender annotated baseclass
method not called for page
---------------------------------------------------------------------------------------------------------
Key: TAPESTRY-2344
URL: https://issues.apache.org/jira/browse/TAPESTRY-2344
Project: Tapestry
Issue Type: Bug
Affects Versions: 5.0.11
Environment: Windows XP
JBoss .4.0.5GA
java.vm.specification.vendor=Sun Microsystems Inc.
java.runtime.version=1.5.0_15-b04
java.version=1.5.0_15
Reporter: George Smith
Priority: Minor
My page has 2 of my components on it. All 3 classes extend a common base class.
The base class' cleanupRender() is called 3 times, but @CleanupRender foobar()
is called twice; it is not called for the page, only for the components. If the
methods are on the page subclass, they are called correctly; the base class is
where they are failing.
(it also seems like the page subclass' cleanupRender() and foobar() are called
twice, but I think I read that in another bug report)
public class BaseComponent {
@Inject
private ComponentResources resources;
public void cleanupRender() {
//this method is called for pages and components
System.out.println( "in BaseComponent.cleanupRender(), component = " +
resources.getCompleteId() );
}
@CleanupRender
public void foobar() {
//this one is called for components, but not pages
System.out.println( "in BaseComponent.foobar(), component = " +
resources.getCompleteId() );
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]