getApplication().getRequestCycleSettings().setGatherExtendedBrowserInfo(true)

otherwise only http headers are used...

-igor


On Jan 24, 2008 2:48 PM, Kirk Israel <[EMAIL PROTECTED]> wrote:
> We've decided only to not support IE 6 or below. (Support only for IE7
> and Firefox 2 - I'm not crazy about such narrow browser support, but
> it is what it is.)
>
> I have this code:
>             WebClientInfo w =
> (WebClientInfo)getWebRequestCycle().getClientInfo();
>             ClientProperties cp = w.getProperties();
>             
> System.out.println("getNavigatorAppName'"+cp.getNavigatorAppName()+"'");
>             
> System.out.println("getNavigatorAppCodeName'"+cp.getNavigatorAppCodeName()+"'");
>             
> System.out.println("getNavigatorAppVersion'"+cp.getNavigatorAppVersion()+"'");
>             
> System.out.println("getBrowserVersionMajor'"+cp.getBrowserVersionMajor()+"'");
>             
> System.out.println("getBrowserVersionMinor'"+cp.getBrowserVersionMinor()+"'");
>
> For Firefox, everything is nulls and -1s. For IE,
> getBrowserVersionMajor is set, and, in a pich, I could probably base a
> decent 90/10 solution on that.
>
> But I suspect I'm doing something wrong, the cast makes me a little nervous.
>
> I did Google up WebClientInfo and ClientProperties and all that but
> couldn't use that to figure out how to make this better, or if there
> was some kind of initialization step I missed.
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to