Zamek <[EMAIL PROTECTED]> writes:

If you have a Default _PAGE_, you must extend Velocity_Page_, not VelocityScreen

>package com.zamek.portal.modules.pages;
>...
>import org.apache.turbine.modules.screens.VelocityScreen;

>public class Default extends VelocityScreen {
                              ^^^^^^^^^^^^^^

That's your problem. Try VelocityPage here. Same might
be true for your Layout.

If you want to render your page with VelocityPage and
VelocityOnlyLayout, you must _not_ have classes in your packages for
this. The TemplateService will use its search pathes to match your
Template (Default.vm) with the necessary screen class (VelocityScreen,
from services.VelocityService.default.screen=VelocityScreen), page
(VelocityPage, from services.VelocityService.default.page =
VelocityPage) and Layout (from services.VelocityService.default.layout
= VelocityOnlyLayout).

Only if you need additional functionality in the Page, Layout and
Screen class, you should supply your own classes. If you don't have
anything in these classes, _DON'T_ supply Java code for it. That's
what the default classes are for.

        Regards
                Henning




-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

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

Reply via email to