Bob Schellink wrote:
public class MyPanel extends Panel { // Extend from Panel
public MyPanel() {
addModel("myString", "loaded");
}
}
Here is a more concrete example with the proper constructor:
public class MyPanel extends Panel {
public MyPanel(String name, String template) {
super(name, template);
addModel("myString", "loaded");
}
}
public class ContainerPage extends Page {
// reference MyPanel from ContainerPage
public MyPanel panel = new MyPanel('mypanel', '/myPanel.htm');
}
bob
