portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/modules/pages JetspeedTemplatePage.java
Date Wed, 04 Apr 2001 07:38:24 GMT
ingo        01/04/04 00:38:23

  Modified:    src/java/org/apache/jetspeed/modules/pages
                        JetspeedTemplatePage.java
  Log:
  [fix] stack trace on logout due to missing locale information
  
  Revision  Changes    Path
  1.8       +17 -1     jakarta-jetspeed/src/java/org/apache/jetspeed/modules/pages/JetspeedTemplatePage.java
  
  Index: JetspeedTemplatePage.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/modules/pages/JetspeedTemplatePage.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JetspeedTemplatePage.java	2001/04/03 15:50:15	1.7
  +++ JetspeedTemplatePage.java	2001/04/04 07:38:23	1.8
  @@ -125,7 +125,7 @@
    *
    * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
    * @author <a href="mailto:mbryson@mont.mindspring.com">Dave Bryson</a>
  - * @version $Id: JetspeedTemplatePage.java,v 1.7 2001/04/03 15:50:15 ingo Exp $
  + * @version $Id: JetspeedTemplatePage.java,v 1.8 2001/04/04 07:38:23 ingo Exp $
    */
   public class JetspeedTemplatePage extends DefaultPage
   {
  @@ -143,6 +143,22 @@
           // in cases where multiple Screens map to one template.  The template
           // is hardcoded into the Screen in this instance.  In this case this
           // action is skipped.
  +
  +//<Temporary FIX: I don't now, why we still need this: the problem is that on logout,

  +//                the user object is replaced by an anynomous user - and we loose the locale
  +//                information that we set in the session validator.
  +//                However, with TDKa13, the sessionvalidator is called _after_ the logout
action
  +//                so I don't understand, why we still need this..?
  +		
  +        // Get the locale store it in the user object
  +        Locale tmplocale = LocaleDetector.getLocale(data);
  +        if (tmplocale == null) {
  +            tmplocale = new Locale(
  +                     TurbineResources.getString("locale.default.language", "en"),
  +                     TurbineResources.getString("locale.default.country", "US"));
  +        }
  +             data.getUser().setTemp("locale", tmplocale);
  +//</Temporary FIX>                
   
           if ( data.hasScreen() )
               data.setScreenTemplate( "Ecs" );
  
  
  

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


Mime
View raw message