cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Mauch <ma...@imkenberg.de>
Subject AW: extending XSP base call
Date Fri, 30 May 2003 20:18:38 GMT
of course you are right that we can make the same 
thing with delegation. And thatis exactly what 
I do in the moment. I wrote a helper class that 
contain all the code i need in my xsp-views.
I just found that inheritance is a comfortable
alternative to delegation.
So is not needed for me, but nice to have :)

Thorsten

-----Urspr√ľngliche Nachricht-----
Von: Ricardo Rocha [mailto:ricardo@apache.org]
Gesendet: Freitag, 30. Mai 2003 17:35
An: cocoon-dev@xml.apache.org
Betreff: Re: extending XSP base call


Konstantin Piroumian wrote:
> From: "Geoff Howard" <cocoon@leverageweb.com>
> 
>>>Thorsten Mauch wrote:
> 
> 
>>>>I like to add some common methods. As a pure jave programmer
>>>>I hate logicsheets ;(
>>>>So is it possible to extend the the class XSPGenerator and tell
>>>>Cocoon to use this class as a base class for
>>>>the XSP ?
>>>
>>>No. See xsp.xsl
>>
>>Would this be a bad feature to add?  It would be a simple xsp:extend
>>tag, no?
> 
> 
> There's something like this possible in JSP.
> I'd suggest to add an attribute like: 
>   <xsp:page extends="com.bla.mla.MyClass"/>

Why?

What could one achieve with inheritance that cannot be achieved,
for instance, with delegation?

Ricardo

Mime
View raw message