RE: Inheritance (asset/bean)

2006-06-29 Thread Schulte Marcus
What you can do, is factor out part of the base-class spec into a separate
file and include it as an external xml-entity in all specs of your
hierarchy. 
Downside of this: this works only in T3, it's broken in T4 - and Spindle
doesn't get it right.
Marcus


> -Original Message-
> From: Gentry, Michael (Contractor) 
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 3:43 PM
> To: Tapestry users
> Subject: RE: Inheritance (asset/bean)
> 
> Thanks Kevin.  Rather than introduce more gunk, I just won't 
> refactor the common portions to the superclass.  Perhaps I 
> should add inheritance of inject/asset/bean (there are 
> probably others) to the T4.1 wish list ...
> 
> /dev/mrg
> 
> 
> -Original Message-
> From: Kevin Menard [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 28, 2006 5:22 PM
> To: Tapestry users
> Subject: Re: Inheritance (asset/bean)
> 
> 
> On Wed, 28 Jun 2006 16:39:25 -0400, Gentry, Michael (Contractor)  
> <[EMAIL PROTECTED]> wrote:
> 
> > It wouldn't inherit in the subclass pages, though.  Is there any way
> to
> > get this to inherit?  (Also, beans didn't seem to inherit, 
> either.  I
> > already know injection doesn't.)
> 
> I don't think it's doable via the page spec.  It will work with  
> annotations though.
> 
> >
> > PS. T4/Java 1.4
> 
> You could try retroweaver or one of those tools that let you use  
> annotations in Java 1.4.  I have zero experience with them 
> though, so I
> 
> can't comment on it much further.
> 
> -- 
> Kevin
> 
> -
> 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]



Re: Inheritance (asset/bean)

2006-06-29 Thread Kevin Menard
On Thu, 29 Jun 2006 09:43:17 -0400, Gentry, Michael (Contractor)  
<[EMAIL PROTECTED]> wrote:



Thanks Kevin.  Rather than introduce more gunk, I just won't refactor
the common portions to the superclass.  Perhaps I should add inheritance
of inject/asset/bean (there are probably others) to the T4.1 wish list
...


What would also be really nice is allowing the page spec to override  
annotations.  I think Howard had mentioned this as a goal of T5.  As it  
stands now, using annotations I have nicely inherited attributes, but if  
I'd like to override any one of them, I need to introduce a subclass that  
does nothing more than override the attribute value.  Being able to do it  
in the page spec, especially if one already exists, would be really nice.


--
Kevin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Inheritance (asset/bean)

2006-06-29 Thread Gentry, Michael \(Contractor\)
Inheritance appears to be #3 on the wish list already.  :-)



-Original Message-
From: Gentry, Michael (Contractor) [mailto:[EMAIL PROTECTED]

Sent: Thursday, June 29, 2006 9:43 AM
To: Tapestry users
Subject: RE: Inheritance (asset/bean)


Thanks Kevin.  Rather than introduce more gunk, I just won't refactor
the common portions to the superclass.  Perhaps I should add inheritance
of inject/asset/bean (there are probably others) to the T4.1 wish list
...

/dev/mrg


-Original Message-
From: Kevin Menard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 5:22 PM
To: Tapestry users
Subject: Re: Inheritance (asset/bean)


On Wed, 28 Jun 2006 16:39:25 -0400, Gentry, Michael (Contractor)  
<[EMAIL PROTECTED]> wrote:

> It wouldn't inherit in the subclass pages, though.  Is there any way
to
> get this to inherit?  (Also, beans didn't seem to inherit, either.  I
> already know injection doesn't.)

I don't think it's doable via the page spec.  It will work with  
annotations though.

>
> PS. T4/Java 1.4

You could try retroweaver or one of those tools that let you use  
annotations in Java 1.4.  I have zero experience with them though, so I

can't comment on it much further.

-- 
Kevin

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



RE: Inheritance (asset/bean)

2006-06-29 Thread Gentry, Michael \(Contractor\)
Thanks Kevin.  Rather than introduce more gunk, I just won't refactor
the common portions to the superclass.  Perhaps I should add inheritance
of inject/asset/bean (there are probably others) to the T4.1 wish list
...

/dev/mrg


-Original Message-
From: Kevin Menard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 5:22 PM
To: Tapestry users
Subject: Re: Inheritance (asset/bean)


On Wed, 28 Jun 2006 16:39:25 -0400, Gentry, Michael (Contractor)  
<[EMAIL PROTECTED]> wrote:

> It wouldn't inherit in the subclass pages, though.  Is there any way
to
> get this to inherit?  (Also, beans didn't seem to inherit, either.  I
> already know injection doesn't.)

I don't think it's doable via the page spec.  It will work with  
annotations though.

>
> PS. T4/Java 1.4

You could try retroweaver or one of those tools that let you use  
annotations in Java 1.4.  I have zero experience with them though, so I

can't comment on it much further.

-- 
Kevin

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



Re: Inheritance (asset/bean)

2006-06-28 Thread Kevin Menard
On Wed, 28 Jun 2006 16:39:25 -0400, Gentry, Michael (Contractor)  
<[EMAIL PROTECTED]> wrote:



It wouldn't inherit in the subclass pages, though.  Is there any way to
get this to inherit?  (Also, beans didn't seem to inherit, either.  I
already know injection doesn't.)


I don't think it's doable via the page spec.  It will work with  
annotations though.




PS. T4/Java 1.4


You could try retroweaver or one of those tools that let you use  
annotations in Java 1.4.  I have zero experience with them though, so I  
can't comment on it much further.


--
Kevin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]