You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/11/05 22:56:56 UTC
svn commit: r1031837 -
/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
Author: lofwyr
Date: Fri Nov 5 21:56:55 2010
New Revision: 1031837
URL: http://svn.apache.org/viewvc?rev=1031837&view=rev
Log:
TOBAGO-938: Remove the feature that puts Tobago in debugMode with locale "to-ba-go"
Modified:
myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
Modified: myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java?rev=1031837&r1=1031836&r2=1031837&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java (original)
+++ myfaces/tobago/trunk/tobago-core/src/main/java/org/apache/myfaces/tobago/context/ClientProperties.java Fri Nov 5 21:56:55 2010
@@ -100,17 +100,6 @@ public class ClientProperties implements
LOG.info("userAgent='" + this.userAgent + "' from header " + "'User-Agent: " + requestUserAgent + "'");
}
- // debug mode
- // to enable the debug mode for a user, put a
- // "to-ba-go" custom locale to your browser
- String acceptLanguage = (String) externalContext.getRequestHeaderMap().get("Accept-Language");
- if (acceptLanguage != null) {
- this.debugMode = acceptLanguage.indexOf("to-ba-go") > -1;
- }
- if (LOG.isInfoEnabled()) {
- LOG.info("debugMode=" + debugMode);
- }
-
// theme
String requestTheme = (String) externalContext.getRequestParameterMap().get("tobago.theme");
TobagoConfig config = TobagoConfig.getInstance(facesContext);
@@ -118,6 +107,7 @@ public class ClientProperties implements
if (LOG.isInfoEnabled()) {
LOG.info("theme='" + theme.getName() + "' from requestParameter " + "tobago.theme='" + requestTheme + "'");
}
+
reset();
}