I was wondering if the public no-args constructor requirement on page
classes also extends to their parent classes.
This is my Start.html
---
[<t:pagelink t:page="Index">Index</t:pagelink>]
---
My Index.html contains only static text.
My Start.java is an empty POJO.
My Index.java looks like this (removed package):
---
public class Index extends BasePage {
public Index() {
super("Test");
}
}
---
The BasePage.java (in another package from my pages) looks like this:
---
public abstract class BasePage {
private String title ;
public BasePage(String title) {
super();
this.title = title;
}
}
---
I get the following error from tapestry when rendering Start.html, it
points at the pagelink line and says:
java.lang.NoSuchMethodError: xxx.BasePage: method <init>()V not found
If I add a public no-args constructor to the BasePage (no changes to
Index.java) it does not complain . Is this expected?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]