Re: Unable to access exported JsType from JavaScript

2016-06-20 Thread Andrea Spadaccini
Hi, > Looking at your code, the class would be available at "blah.WebUI", but > you'd have to create a new instance before your can call your method, and > given how you initialize it you'd have to call onModuleLoad before that. > Maybe if you make your method and all the fields 'static'

Re: Unable to access exported JsType from JavaScript

2016-06-20 Thread Andrea Spadaccini
Hi, > Did you forgot to add -generateJsInteropExports to the compiler parameters? > I set it for both devmode and production code: https://github.com/lupino3/edumips64/blob/jsinterop/build.xml#L104 Is it set in the right way? Thanks! Andrea -- You received this message because you are

Re: Unable to access exported JsType from JavaScript

2016-06-19 Thread Thomas Broyer
Looking at your code, the class would be available at "blah.WebUI", but you'd have to create a new instance before your can call your method, and given how you initialize it you'd have to call onModuleLoad before that. Maybe if you make your method and all the fields 'static' that'd work;

Re: Unable to access exported JsType from JavaScript

2016-06-19 Thread Jens
Did you forgot to add -generateJsInteropExports to the compiler parameters? -- J. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Unable to access exported JsType from JavaScript

2016-06-19 Thread Andrea Spadaccini
Hi everyone, I am trying to port my CPU simulator from Java to Javascript, and I am using GWT for it. Thanks for the awesome work! I'd like to just expose a single Java object to JS, and then build the UI using HTML/CSS/. To do so, I think I need to use JsInterop, right? I am trying to do so,