See some of the threads on this topic on using annotations in 4.0 (also in the dev list).

Jamie
On Jun 30, 2005, at 10:56 AM, Michael Engelhart wrote:

Thanks Jamie -

Yeah, I did the first approach with abstract methods in the base class
but as you said it quickly becomes cumbersome.

Is this feature supported in 4.0?

Mike

On 6/29/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote:
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]



---------------------------------------------------------------------
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]

Reply via email to