Re: isJavaEnabled does not work

2012-04-02 Thread Martin Grigorov
Wicket extracts this information just once - when you see the
BrowserInfoPage, the one with the message If you see this, it means
that both javascript and meta-refresh are not support by your browser
configuration
After that this info is cached at the server side in the Session.

You can use Ajax timer behavior that can send you the latest state at
the client side (height, width, ...). If the client disables
JavaScript then this behavior will stop sending this info, i.e. you
will know that JS is disabled if you don't receive new data for
duration bigger than the timer's update duration.

2012/4/1 Andre Schütz andre-p...@gmx.de:
 Hello,

 thank you for the information. I have two further questions that
 are of importance for me.

 (1)
 I have Javascript enabled in Opera and Firefox. I tested the two
 following client information:

 Method - result in my logs
 isJavaEnabled - false
 isCookiesEnabled - true

 (a) I disabled Javascript in the browsers and got:

 (Method - result in my logs)
 isJavaEnabled - false
 isCookiesEnabled - true

 (b) I deleted the browser cache and the session:

 (Method - result in my logs)
 isJavaEnabled - false
 isCookiesEnabled - true

 Why did the methods still deliver these values? There was no
 Javascript enabled to check for these value.

 (2)
 Additionally, I checked the value of getBrowserHeight. I got the
 following results:

 (a) Javascript disabled

 getBrowserHeight - -1

 (b) Javascript enabled

 getBrowserHeight - -1

 (c) Delete browser cache and session

 getBrowserHeight - 840

 Is it possible to detect the change of the Javascript functionality
 in the same session?

 (3)
 Regarding question (1). If the getClientInfo() and the properties
 methods always deliver a result, how do I check for Javascript correctly?
 This is important for me because of an AjaxSelfUpdatingBehavior which
 does not work without enabled Javascript.

 Thank you for your answers.
 Andre

 On Sat, 31 Mar 2012 23:17:20 +0200
 Martin Grigorov mgrigo...@apache.org wrote:

 The method says Java, not JavaScript.
 The page that extracts the extra info uses JavaScript to do that, so
 it is enabled.

 2012/3/31 Andre Schütz wic...@faustas.de:
  Hello,
 
  I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
  the following lines:
 
  Application:
  -
  protected void init() {
   super.init();
   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
  ...
  }
 
  MyWebPage:
  -
  WebSession session = WebSession.get();
  if (session.getClientInfo().getProperties().isJavaEnabled()) {
   System.out.println(enabled);
  }
  else {
   System.out.println(disabled);
  }
 
  With Opera 11.62 or Firefox 11 I always get disabled. I checked the
  settings and Javascript is enabled in both browsers.
 
  Additionally, I tried the website:
  http://wicketstuff.org/wicket/hellobrowser/howdy
 
  The same result. JavaEnabled = false.
 
  Any ideas?
 
  --
  Andre Schütz wic...@faustas.de
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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


 --
 Andre Schütz schuetz.an...@gmx.net

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: isJavaEnabled does not work

2012-04-01 Thread Andre Schütz
Hello,

thank you for the information. I have two further questions that
are of importance for me.

(1)
I have Javascript enabled in Opera and Firefox. I tested the two
following client information:

Method - result in my logs
isJavaEnabled - false
isCookiesEnabled - true

(a) I disabled Javascript in the browsers and got:

(Method - result in my logs)
isJavaEnabled - false
isCookiesEnabled - true

(b) I deleted the browser cache and the session:

(Method - result in my logs)
isJavaEnabled - false
isCookiesEnabled - true

Why did the methods still deliver these values? There was no
Javascript enabled to check for these value.

(2)
Additionally, I checked the value of getBrowserHeight. I got the
following results:

(a) Javascript disabled

getBrowserHeight - -1

(b) Javascript enabled

getBrowserHeight - -1

(c) Delete browser cache and session

getBrowserHeight - 840

Is it possible to detect the change of the Javascript functionality
in the same session?

(3)
Regarding question (1). If the getClientInfo() and the properties
methods always deliver a result, how do I check for Javascript correctly?
This is important for me because of an AjaxSelfUpdatingBehavior which
does not work without enabled Javascript.

Thank you for your answers.
Andre

On Sat, 31 Mar 2012 23:17:20 +0200
Martin Grigorov mgrigo...@apache.org wrote:

 The method says Java, not JavaScript.
 The page that extracts the extra info uses JavaScript to do that, so
 it is enabled.
 
 2012/3/31 Andre Schütz wic...@faustas.de:
  Hello,
 
  I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
  the following lines:
 
  Application:
  -
  protected void init() {
   super.init();
   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
  ...
  }
 
  MyWebPage:
  -
  WebSession session = WebSession.get();
  if (session.getClientInfo().getProperties().isJavaEnabled()) {
   System.out.println(enabled);
  }
  else {
   System.out.println(disabled);
  }
 
  With Opera 11.62 or Firefox 11 I always get disabled. I checked the
  settings and Javascript is enabled in both browsers.
 
  Additionally, I tried the website:
  http://wicketstuff.org/wicket/hellobrowser/howdy
 
  The same result. JavaEnabled = false.
 
  Any ideas?
 
  --
  Andre Schütz wic...@faustas.de
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-- 
Andre Schütz wic...@faustas.de

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



Re: isJavaEnabled does not work

2012-04-01 Thread Andre Schütz
Hello,

thank you for the information. I have two further questions that
are of importance for me.

(1)
I have Javascript enabled in Opera and Firefox. I tested the two
following client information:

Method - result in my logs
isJavaEnabled - false
isCookiesEnabled - true

(a) I disabled Javascript in the browsers and got:

(Method - result in my logs)
isJavaEnabled - false
isCookiesEnabled - true

(b) I deleted the browser cache and the session:

(Method - result in my logs)
isJavaEnabled - false
isCookiesEnabled - true

Why did the methods still deliver these values? There was no
Javascript enabled to check for these value.

(2)
Additionally, I checked the value of getBrowserHeight. I got the
following results:

(a) Javascript disabled

getBrowserHeight - -1

(b) Javascript enabled

getBrowserHeight - -1

(c) Delete browser cache and session

getBrowserHeight - 840

Is it possible to detect the change of the Javascript functionality
in the same session?

(3)
Regarding question (1). If the getClientInfo() and the properties
methods always deliver a result, how do I check for Javascript correctly?
This is important for me because of an AjaxSelfUpdatingBehavior which
does not work without enabled Javascript.

Thank you for your answers.
Andre

On Sat, 31 Mar 2012 23:17:20 +0200
Martin Grigorov mgrigo...@apache.org wrote:

 The method says Java, not JavaScript.
 The page that extracts the extra info uses JavaScript to do that, so
 it is enabled.
 
 2012/3/31 Andre Schütz wic...@faustas.de:
  Hello,
 
  I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
  the following lines:
 
  Application:
  -
  protected void init() {
   super.init();
   getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
  ...
  }
 
  MyWebPage:
  -
  WebSession session = WebSession.get();
  if (session.getClientInfo().getProperties().isJavaEnabled()) {
   System.out.println(enabled);
  }
  else {
   System.out.println(disabled);
  }
 
  With Opera 11.62 or Firefox 11 I always get disabled. I checked the
  settings and Javascript is enabled in both browsers.
 
  Additionally, I tried the website:
  http://wicketstuff.org/wicket/hellobrowser/howdy
 
  The same result. JavaEnabled = false.
 
  Any ideas?
 
  --
  Andre Schütz wic...@faustas.de
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-- 
Andre Schütz schuetz.an...@gmx.net

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



isJavaEnabled does not work

2012-03-31 Thread Andre Schütz
Hello,

I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
the following lines:

Application:
-
protected void init() {
  super.init();
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
...
}

MyWebPage:
-
WebSession session = WebSession.get();
if (session.getClientInfo().getProperties().isJavaEnabled()) {
  System.out.println(enabled);
}
else {
  System.out.println(disabled);
}

With Opera 11.62 or Firefox 11 I always get disabled. I checked the 
settings and Javascript is enabled in both browsers.

Additionally, I tried the website:
http://wicketstuff.org/wicket/hellobrowser/howdy

The same result. JavaEnabled = false.

Any ideas?

-- 
Andre Schütz wic...@faustas.de

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



Re: isJavaEnabled does not work

2012-03-31 Thread Martin Grigorov
The method says Java, not JavaScript.
The page that extracts the extra info uses JavaScript to do that, so
it is enabled.

2012/3/31 Andre Schütz wic...@faustas.de:
 Hello,

 I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
 the following lines:

 Application:
 -
 protected void init() {
  super.init();
  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
 ...
 }

 MyWebPage:
 -
 WebSession session = WebSession.get();
 if (session.getClientInfo().getProperties().isJavaEnabled()) {
  System.out.println(enabled);
 }
 else {
  System.out.println(disabled);
 }

 With Opera 11.62 or Firefox 11 I always get disabled. I checked the
 settings and Javascript is enabled in both browsers.

 Additionally, I tried the website:
 http://wicketstuff.org/wicket/hellobrowser/howdy

 The same result. JavaEnabled = false.

 Any ideas?

 --
 Andre Schütz wic...@faustas.de

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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