AW: Question about extending the screen object

"Juergen Hoffmann" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <001201c9806d$6a00aeb0$3e020c10$@org>
Hi Ludwig,

create a Default.class Turbine will look for it if it cannot find a screen
Class for a specific Template.

It looks for <Package1>.<subpackage>.<TemplateName>.class
Then for <Package1>.<subpackage>.Default.class
Then for <Package1>.Default.class

And so on. 

I hope this made it clear

Kind regards

Juergen

> -----Ursprüngliche Nachricht-----
> Von: Ludwig Magnusson [mailto:[email protected]]
> Gesendet: Dienstag, 27. Januar 2009 10:51
> An: 'Turbine Users List'
> Betreff: Question about extending the screen object
> 
> Hi!
> 
> On my site I have several screens that I want a certain specific java-
> coded
> behavior for. I see in the documentation that the way to do this is to
> create a Super-Screen class and let all my other screens extend that
> one.
> However, if I don't want to implement any other behavior in the screens
> this
> means that I will have several java classes with an empty body, all
> they do
> is extend my Super-Screen.
> 
> Is this the way to do it or is there any way around this so I do not
> need to
> create one class for each template?
> 
> 
> 
> Or rather, can FooTemplate.vm execute the code in BarClass.class?
> 
> /Ludwig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.