thank you Marc,

When I have this line in the newFile.vm, it generates the Error page.

I have this line in the TurbineResources.properties file:

services.VelocityService.default.layout = VelocityECSLayout

Do I need to reset it in order to have it working?

cheers
michael






> $data.setLayoutTemplate("yourtemplate.vm")
>
>> -----Urspr�ngliche Nachricht-----
>> Von: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 18. Dezember 2002 13:08
>> An: [EMAIL PROTECTED]
>> Betreff: RE: AW: Velocity Format]
>>
>>
>> Thanks, I understand that now.
>>
>> Suppose I have a new layout file call, newLayout.vm under the
>> app/layouts directory and have newTop.vm, newMenu.vm and newBottom.vm
>> under the app/navigations directory, and I have a new file named
>> newFile.vm under app/screens,  how do I specify in this newFile.vm to
>> use this new set of layouts ?
>>
>> thanks again.
>> michael
>>
>>
>> > It's more easy, put it into app/layouts.
>> >
>> >> -----Urspr�ngliche Nachricht-----
>> >> Von: Eigen Technology Pty Ltd [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 18. Dezember 2002 12:39
>> >> An: [EMAIL PROTECTED]
>> >> Betreff: Re: AW: Velocity Format
>> >>
>> >>
>> >> Thanks, below is the default Directory tree for newapp example.
>> Where do I suppose to set out this new Layout-Templates?  At the
>> same level as app / jsp / flux or as a subdirectory of app?
>> >>
>> >> |-- app
>> >> |   |-- GlobalMacros.vm
>> >> |   |-- layouts
>> >> |   |   |-- Default.vm
>> >> |   |   `-- Login.vm
>> >> |   |-- navigations
>> >> |   |   |-- DefaultBottom.vm
>> >> |   |   |-- DefaultTop.vm
>> >> |   |   `-- Menu.vm
>> >> |   `-- screens
>> >> |       |-- Error.vm
>> >> |       |-- Form.vm
>> >> |       |-- Index.vm
>> >> |       |-- Insert.vm
>> >> |       |-- Login.vm
>> >> |       |-- ServletInfo.vm
>> >> |       |-- Upload.vm
>> >> |       `-- UploadComplete.vm
>> >> |-- flux
>> >> |   |-- GlobalMacros.vm
>> >> |   |-- layouts
>> >> |   |   `-- FluxDefault.vm
>> >> |   |-- navigations
>> >> |   |   |-- FluxBottom.vm
>> >> |   |   |-- FluxMenu.vm
>> >> |   |   `-- FluxTop.vm
>> >> |   `-- screens
>> >> |       |-- FluxEmbeddedMenu.vm
>> >> |       |-- FluxError.vm
>> >> |       |-- FluxIndex.vm
>> >> |       |-- FluxLogin.vm
>> >> |       |-- group
>> >> |       |   |-- FluxGroupAlreadyExists.vm
>> >> |       |   |-- FluxGroupForm.vm
>> >> |       |   `-- FluxGroupList.vm
>> >> |       |-- permission
>> >> |       |   |-- FluxPermissionAlreadyExists.vm
>> >> |       |   |-- FluxPermissionForm.vm
>> >> |       |   `-- FluxPermissionList.vm
>> >> |       |-- role
>> >> |       |   |-- FluxRoleAlreadyExists.vm
>> >> |       |   |-- FluxRoleForm.vm
>> >> |       |   |-- FluxRoleList.vm
>> >> |       |   `-- FluxRolePermissionForm.vm
>> >> |       `-- user
>> >> |           |-- FluxMissingRequiredInputs.vm
>> >> |           |-- FluxUserAlreadyExists.vm
>> >> |           |-- FluxUserForm.vm
>> >> |           |-- FluxUserList.vm
>> >> |           `-- FluxUserRoleForm.vm
>> >> |-- jsp
>> >> |   |-- screens
>> >> |   |   |-- Index.jsp
>> >> |   |   `-- Login.jsp
>> >> |   `-- tld
>> >> |       `-- Test.tld
>> >>
>> >>
>> >>
>> >>
>> >> > Hi,
>> >> > you have to create additional Layout-Templates and set them in
>> your
>> >> action or screen or in a link.
>> >> > In these Layout-templates you can individually specify which
>> navigation-files you want to use.
>> >> > Hope that helps
>> >> > Marc
>> >> >
>> >> >> -----Urspr�ngliche Nachricht-----
>> >> >> Von: Eigen Technology Pty Ltd
>> [mailto:[EMAIL PROTECTED]]
>> >> Gesendet: Mittwoch, 18. Dezember 2002 12:01
>> >> >> An: [EMAIL PROTECTED]
>> >> >> Betreff: Velocity Format
>> >> >>
>> >> >>
>> >> >> Hi All,
>> >> >>
>> >> >> I would like to display a .vm page without the DefaultTop, Menu
>> >> and
>> >> Bottom. I know this can be achieved by getting rid of a few lines
>> in the layout/Default.vm file. But I would like the Top, Menu and
>> Botton to exist in some files but not others, is this possible?
>> >> >>
>> >> >> cheers
>> >> >> michael
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> To unsubscribe, e-mail:
>> >> >> <mailto:[EMAIL PROTECTED]>
>> >> >> For additional commands, e-mail:
>> >> >> <mailto:[EMAIL PROTECTED]>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> To unsubscribe, e-mail:
>> > <mailto:[EMAIL PROTECTED]>
>> > For additional commands, e-mail:
>> > <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]> For additional
> commands, e-mail: <mailto:[EMAIL PROTECTED]>




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

Reply via email to