You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Humberto Hernadez Torres <hh...@itweb.com.mx> on 2001/07/27 00:18:39 UTC

How to define default screen

Hi list. I have a novice question.
We are building a site with three sections. All the screens in each
section should have the same Layout and Access Control Policy. But the
Layout and Access Control Policy should be different for each section.
That can be defined in the java part of the screen and we can have a
Default.java screen that is used when there is no corresponding java
file. But how do we do it so   all the screens in section 1 share the
same Default.java and all the screens in section 2 share another
Default.java. What we have been forced to do is to write a java file for
each screen.

I hope the question is clear enough.
--
  Humberto

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: How to define default screen

Posted by John McNally <jm...@collab.net>.
templates/screens/section1/
  foo.vm bar.vm
templates/screens/section2/
  foo.vm bar.vm
templates/screens/section3/
  foo.vm bar.vm

templates/layouts/section1/
  Default.vm
templates/layouts/section2/
  Default.vm
templates/layouts/section3/
  Default.vm

java
mypkg.screens.section1.Default
mypkg.screens.section2.Default
mypkg.screens.section3.Default

john mcnally

Humberto Hernadez Torres wrote:
> 
> Hi list. I have a novice question.
> We are building a site with three sections. All the screens in each
> section should have the same Layout and Access Control Policy. But the
> Layout and Access Control Policy should be different for each section.
> That can be defined in the java part of the screen and we can have a
> Default.java screen that is used when there is no corresponding java
> file. But how do we do it so   all the screens in section 1 share the
> same Default.java and all the screens in section 2 share another
> Default.java. What we have been forced to do is to write a java file for
> each screen.
> 
> I hope the question is clear enough.
> --
>   Humberto
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org