You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Conway Tse <kl...@yahoo.com> on 2001/11/28 10:31:16 UTC

Layout - Login.vm How to use it ?

Dear All,
I am trying to start working on Turbine by using newapp. Following an
unsuccessful login, the page shows with screen which carry the menu.
Apparently, it is using the Layout Default.vm. I have been looking at
TurbineResource.properties to see if there is a way to change it to use
Layout Login.vm. After a number of attempts, I still cannot make it. Can
anybody help ?
Best regards,
Conway Tse


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Layout - Login.vm How to use it ?

Posted by Terry McBride <tt...@yahoo.com>.

This is a known bug.  The developers gotta be tired of
this discussion by now, but alas no fix in the
distribution.  

Check out this thread
http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg04491.html

They say there is a fix in the archives, but I haven't
found it - haven't looked too hard either.

--- Conway Tse <kl...@yahoo.com> wrote:
> Dear Marco,
> Actually, I have not made any changes to the java
> code yet as java is new to
> me. I was using php before and have no experience in
> java. I have basically
> keep the orginal newapp intact. Are there any way to
> achieve this by
> changing the settings in Turbineresource.properties
> ? Or if you can help me
> by giving more details of your way of handling it.
> Best regards,
> Conway Tse
> ----- Original Message -----
> From: "Marco Schoolenberg"
> <Ma...@MaXware.nl>
> To: "Turbine Users List"
> <tu...@jakarta.apache.org>
> Sent: Wednesday, November 28, 2001 6:04 PM
> Subject: Re: Layout - Login.vm How to use it ?
> 
> 
> > I have extended the VelocityNavigation
> > Turbineresource.properties looks like this
> > <snip>
> > # MyNavigations.class  extends Velocity navigation
> and rezides in the
> > package
> > # com.********.******.modules.navigations
> >
>
services.VelocityService.default.navigation=MyNavigations
> > services.VelocityService.default.error.screen =
> VelocityErrorScreen
> > services.VelocityService.default.layout.template =
> /My_layout.vm
> > </snip>
> > I have a My_Layout.vm in the templates\Navigations
> dir
> >
> > In your classes  you should check in all classes
> you wrote or extend to
> see
> > if somewhere you are using the method setLayout
> and setLayoutTemplate you
> > can and you can check all your .vm's to see if
> anywhere you are setting
> the
> > layout to default.vm again.
> >
> > Gl Marco Schoolenberg
> >
> > ----- Original Message -----
> > From: "Conway Tse" <kl...@yahoo.com>
> > To: "Turbine Users List"
> <tu...@jakarta.apache.org>
> > Sent: Wednesday, November 28, 2001 10:31 AM
> > Subject: Layout - Login.vm How to use it ?
> >
> >
> > > Dear All,
> > > I am trying to start working on Turbine by using
> newapp. Following an
> > > unsuccessful login, the page shows with screen
> which carry the menu.
> > > Apparently, it is using the Layout Default.vm. I
> have been looking at
> > > TurbineResource.properties to see if there is a
> way to change it to use
> > > Layout Login.vm. After a number of attempts, I
> still cannot make it. Can
> > > anybody help ?
> > > Best regards,
> > > Conway Tse
> > >
> > >
> > >
>
_________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at
> http://mail.yahoo.com
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> >
> <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> 
>
_________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


=====
"I'm concerned about a better world. I'm concerned about justice; I'm concerned about brotherhood; I'm concerned about truth. And when one is concerned about that, he can never advocate violence. For through violence you may murder a murderer, but you can't murder murder. Through violence you may murder a liar, but you can't establish truth. Through violence you may murder a hater, but you can't murder hate through violence. Darkness cannot put out darkness; only light can do that."

-M. L. King, Jr., 16 August 1967

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Layout - Login.vm How to use it ?

Posted by Conway Tse <kl...@yahoo.com>.
Dear Marco,
Actually, I have not made any changes to the java code yet as java is new to
me. I was using php before and have no experience in java. I have basically
keep the orginal newapp intact. Are there any way to achieve this by
changing the settings in Turbineresource.properties ? Or if you can help me
by giving more details of your way of handling it.
Best regards,
Conway Tse
----- Original Message -----
From: "Marco Schoolenberg" <Ma...@MaXware.nl>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, November 28, 2001 6:04 PM
Subject: Re: Layout - Login.vm How to use it ?


> I have extended the VelocityNavigation
> Turbineresource.properties looks like this
> <snip>
> # MyNavigations.class  extends Velocity navigation and rezides in the
> package
> # com.********.******.modules.navigations
> services.VelocityService.default.navigation=MyNavigations
> services.VelocityService.default.error.screen = VelocityErrorScreen
> services.VelocityService.default.layout.template = /My_layout.vm
> </snip>
> I have a My_Layout.vm in the templates\Navigations dir
>
> In your classes  you should check in all classes you wrote or extend to
see
> if somewhere you are using the method setLayout and setLayoutTemplate you
> can and you can check all your .vm's to see if anywhere you are setting
the
> layout to default.vm again.
>
> Gl Marco Schoolenberg
>
> ----- Original Message -----
> From: "Conway Tse" <kl...@yahoo.com>
> To: "Turbine Users List" <tu...@jakarta.apache.org>
> Sent: Wednesday, November 28, 2001 10:31 AM
> Subject: Layout - Login.vm How to use it ?
>
>
> > Dear All,
> > I am trying to start working on Turbine by using newapp. Following an
> > unsuccessful login, the page shows with screen which carry the menu.
> > Apparently, it is using the Layout Default.vm. I have been looking at
> > TurbineResource.properties to see if there is a way to change it to use
> > Layout Login.vm. After a number of attempts, I still cannot make it. Can
> > anybody help ?
> > Best regards,
> > Conway Tse
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Layout - Login.vm How to use it ?

Posted by Marco Schoolenberg <Ma...@MaXware.nl>.
I have extended the VelocityNavigation
Turbineresource.properties looks like this
<snip>
# MyNavigations.class  extends Velocity navigation and rezides in the
package
# com.********.******.modules.navigations
services.VelocityService.default.navigation=MyNavigations
services.VelocityService.default.error.screen = VelocityErrorScreen
services.VelocityService.default.layout.template = /My_layout.vm
</snip>
I have a My_Layout.vm in the templates\Navigations dir

In your classes  you should check in all classes you wrote or extend to see
if somewhere you are using the method setLayout and setLayoutTemplate you
can and you can check all your .vm's to see if anywhere you are setting the
layout to default.vm again.

Gl Marco Schoolenberg

----- Original Message -----
From: "Conway Tse" <kl...@yahoo.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, November 28, 2001 10:31 AM
Subject: Layout - Login.vm How to use it ?


> Dear All,
> I am trying to start working on Turbine by using newapp. Following an
> unsuccessful login, the page shows with screen which carry the menu.
> Apparently, it is using the Layout Default.vm. I have been looking at
> TurbineResource.properties to see if there is a way to change it to use
> Layout Login.vm. After a number of attempts, I still cannot make it. Can
> anybody help ?
> Best regards,
> Conway Tse
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>