In 3.0, if you want a base page class, it's easiest to implement the
initialization of its properties in that class. You can't extend the
page spec. If you make the base page properties abstract, then you would
need to add <property-specification> to each page's spec. That would be
rather cumbersome. Use standard bean properties, then call initialize()
on them and all will be well.
public class YourBasePage extends BasePage implements PageValidateListener {
private String somePageProperty;
public String getSomePageProperty(){
return this.somePageProperty;
}
public void setSomePageProperty(String property){
this.somePageProperty = property;
}
protected void initialize() {
setSomePageProperty(null);
super.initialize();
}
}
Jamie
Michael Engelhart wrote:
Hi -
Is there a way to create a templateless abstract base page for a Tapestry app?
I currently have a base page class that extends BasePage but I want to
make that class be able to take advantage of a page specification to
limit the writing of code make clean up of persistent properties
easier.
Is there a way to do this?
THanks
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]