You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by ravala <ra...@gmail.com> on 2016/05/26 05:02:36 UTC

Browser/Client info navigatorJavaEnabled property returns undefined

Hi, 

I was trying to use WebClientInfo to get browser information on the server,
In the Ipad chrome
when retrieving  'navigatorJavaEnabled' is returning 'undefined' instead of
true/false.

The problem is as  'undefined' is string but server is expecting boolean,
leads to exception and causing  browser to reload continuously.

possible solution 

In wicket-browser-info.js
--------------------------------------
info.navigatorJavaEnabled = window.navigator.javaEnabled() || false; 


Regards,
Ramesh V

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Client-info-navigatorJavaEnabled-property-returns-undefined-tp4674794.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Browser/Client info navigatorJavaEnabled property returns undefined

Posted by Sven Meier <sv...@meiers.net>.
Hi,

please create a Jira issue.

Many thanks
Sven

On 26.05.2016 07:02, ravala wrote:
> Hi,
>
> I was trying to use WebClientInfo to get browser information on the server,
> In the Ipad chrome
> when retrieving  'navigatorJavaEnabled' is returning 'undefined' instead of
> true/false.
>
> The problem is as  'undefined' is string but server is expecting boolean,
> leads to exception and causing  browser to reload continuously.
>
> possible solution
>
> In wicket-browser-info.js
> --------------------------------------
> info.navigatorJavaEnabled = window.navigator.javaEnabled() || false;
>
>
> Regards,
> Ramesh V
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Client-info-navigatorJavaEnabled-property-returns-undefined-tp4674794.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Browser/Client info navigatorJavaEnabled property returns undefined

Posted by ravala <ra...@gmail.com>.
Hi Martin,

The issue is in Chrome browser.

creared a Jira issue, below is the link.
https://issues.apache.org/jira/browse/WICKET-6174




Regards,
Ramesh

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Client-info-navigatorJavaEnabled-property-returns-undefined-tp4674794p4674824.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Browser/Client info navigatorJavaEnabled property returns undefined

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Which browser is this by the way ?

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, May 26, 2016 at 7:02 AM, ravala <ra...@gmail.com> wrote:

> Hi,
>
> I was trying to use WebClientInfo to get browser information on the server,
> In the Ipad chrome
> when retrieving  'navigatorJavaEnabled' is returning 'undefined' instead of
> true/false.
>
> The problem is as  'undefined' is string but server is expecting boolean,
> leads to exception and causing  browser to reload continuously.
>
> possible solution
>
> In wicket-browser-info.js
> --------------------------------------
> info.navigatorJavaEnabled = window.navigator.javaEnabled() || false;
>
>
> Regards,
> Ramesh V
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Browser-Client-info-navigatorJavaEnabled-property-returns-undefined-tp4674794.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>