[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-user
Subject:    RE: Layout context variable
From:       "Declan Shanaghy" <turbine () shanaghy ! com>
Date:       2006-09-08 16:15:43
Message-ID: 20060908161609.B148810FB001 () asf ! osuosl ! org
[Download RAW message or body]

Never mind me, I misunderstood the problem till I saw Tony's reply



-----Original Message-----
From: Declan Shanaghy [mailto:turbine@shanaghy.com] 
Sent: Friday, September 08, 2006 9:13 AM
To: 'Turbine Users List'
Subject: RE: Layout context variable

How about if u create a base screen class?
e.g.

public abstract class MyBaseScreen extends VelocityScreen {
  public void doPerform(...)
  {
    //set title
  }
}

public class EndUserScreen extends MyBaseScreen {
  public void doPerform(...)
  {
    super.doPerform(...)
    //do whatever else
  }
}
 

-----Original Message-----
From: Kintzel Levente [mailto:kintzel.levente@codespring.ro]
Sent: Thursday, August 31, 2006 6:40 AM
To: Turbine Users List
Subject: Layout context variable

Hi guys!

 

I want to set the title of my web pages dynamically, read from a property
file according to the current locale. How can I set the value of the title
context variable in such a way to be recognized by the layout template:

- I tried to set it up from the screen: it works fine, but I don't want to
upload the value of the variable in each screen.

- I tried to set it up from a navigation: it was not recognized

- I tried to save in the session, but I have trouble if the session expires.

Has anybody another idea?

Thank you! 

 

Regards,

     Levi




---------------------------------------------------------------------
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic