Thanks Joakim... I noticed that. I didnt believe the error... but its good to
have a confirmation.
I will try it again in that pages dir.
stick them in the base package, extend the class and it works great
- Original Message -
From: "Barry Books"
To: "Tapestry users"
Sent: Monday, 20 May, 2013 2:31:18 PM
Subject: Re: trying to avoid code bloat
I would not use an Abstract page for this purpose.
I would not use an Abstract page for this purpose. The first problem is
protected will not work because the pages will not have the same package. I
would create a service with these services and just inject that. So your
page would just have
@Inject
private Services services;
and your service wil
Base-classes need to be located in a package called base on the same level
as pages, components, mixins and services.
/Joakim
On Mon, May 20, 2013 at 4:59 AM, Ken in Nashua wrote:
> Hi Folks,
>
> Can i construct an abstract page and inject a bunch of services and then
> have derived instances
Hi Folks,
Can i construct an abstract page and inject a bunch of services and then have
derived instances extend from that ?
I tried it and seeing some weird class format errors.
I did it with my model entities.
trying to do it with pages and injectables.
public abstract class AbstractPage im