Re: JSNI Issue

2009-08-17 Thread CI-CUBE
My workaround is to use static methods (1 for each Callback) in the base class that redirect the request to virtual members of a static member object. This introduces some overhead but works... anyway is there some advice how to use a true member method in an assignment to a JS callback? TIA,

Re: JSNI Issue

2009-08-17 Thread Thomas Broyer
On 17 août, 16:31, CI-CUBE e...@ci-cube.info wrote: My workaround is to use static methods (1 for each Callback) in the base class that redirect the request to virtual members of a static member object. This introduces some overhead but works... anyway is there some advice how to use a true

JSNI Issue

2009-08-13 Thread CI-CUBE
Hi, I'm assigning a Java method M to a JS Callback. If M is static it works. If M is non-static I get an error when calling the M via JS. // THE BASE CLASS package com.egr.x4gpl.apps.saturn.client; abstract class Application { protected Application(String pUnused) {

Re: JSNI Issue

2009-08-13 Thread olivier nouguier
Hi, I cannot test from here but could you try to replace (call and function definiotion of course ;) : initializeCBs(); by: initializeCBs(this); HIH On Thu, Aug 13, 2009 at 4:30 PM, CI-CUBE e...@ci-cube.info wrote: Hi, I'm assigning a Java method M to a JS Callback. If M is static it

Re: JSNI Issue

2009-08-13 Thread CI-CUBE
sorry, but same result On Aug 13, 4:36 pm, olivier nouguier olivier.nougu...@gmail.com wrote: Hi,  I cannot test from here but could you try to replace (call and function definiotion of course ;) :  initializeCBs(); by:  initializeCBs(this); HIH On Thu, Aug 13, 2009 at 4:30 PM,