Author: ehillenius Date: Tue Aug 14 22:58:28 2007 New Revision: 566033 URL: http://svn.apache.org/viewvc?view=rev&rev=566033 Log: javavdoc improvement
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java?view=diff&rev=566033&r1=566032&r2=566033 ============================================================================== --- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java (original) +++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/ClientProperties.java Tue Aug 14 22:58:28 2007 @@ -29,11 +29,21 @@ * properties with values from the user agent you need to probe the browser * using javascript and request header analysis. Wicket provides a default * implementation of this in [EMAIL PROTECTED] BrowserInfoPage}. + * <p> + * A convenient way of letting Wicket do a sneaky redirect to + * [EMAIL PROTECTED] BrowserInfoPage} (and back again) is to put this in your Application's + * init method: * - * WARNING: Be sure you think about the dangers of depending on - * information you pull from the client too much. They may be easily - * spoofed or inaccurate in other ways, and properties like - * window and browser size are all too easy to be used naively. + * <pre> + * getRequestCycleSettings().setGatherExtendedBrowserInfo(true); + * </pre> + * + * </p> + * + * WARNING: Be sure you think about the dangers of depending on information you + * pull from the client too much. They may be easily spoofed or inaccurate in + * other ways, and properties like window and browser size are all too easy to + * be used naively. * * @see BrowserInfoPage * @author Frank Bille (frankbille) @@ -728,7 +738,7 @@ */ public void setJavaEnabled(boolean navigatorJavaEnabled) { - this.javaEnabled = navigatorJavaEnabled; + javaEnabled = navigatorJavaEnabled; } /** @@ -988,9 +998,9 @@ Field field = fields[i]; // Ignore these fields - if (field.getName().equals("serialVersionUID") == false - && field.getName().startsWith("class$") == false - && field.getName().startsWith("timeZone") == false) + if (field.getName().equals("serialVersionUID") == false && + field.getName().startsWith("class$") == false && + field.getName().startsWith("timeZone") == false) { field.setAccessible(true);