RE: Question about extending the screen object

"Ludwig Magnusson" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <00b701c98081$e56b49c0$b041dd40$@se>
Allright I think that will solve my problems for now, however what if I want
two sets of screens that have different behavior? Is there a solution for
that?
/Ludwig

-----Original Message-----
From: Juergen Hoffmann [mailto:[email protected]] 
Sent: den 27 januari 2009 11:53
To: 'Turbine Users List'
Subject: AW: Question about extending the screen object

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
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.