Re: Javascript module function in GWT with JsInterop

2021-04-21 Thread 'RobW' via GWT Users
Nice - actually proved a very decent little library for us, and easy to 
embed on the 2 panels where we wanted context sensitive coloring. We even 
got syntax error markers in the margins working - our server code already 
parsed and reported lines in error, so it was just a case of figuring the 
Codejar API to add the markers to the associated lines. We were a bit short 
of time, so we ended up using a minimal set of old-stype JSNI method 
wrappings for the 7 or 8 native methods we needed. JsInterop would 
obviously be a tidier and more modern way to go of course.

On Wednesday, 21 April 2021 at 15:33:59 UTC+1 Thomas wrote:

> Ok, cool. Coincidentally I also want to use CodeJar, so I can work that 
> out ;) Cheers!
>
> On Wednesday, April 21, 2021 at 10:25:48 PM UTC+8 RobW wrote:
>
>> From memory, I think we took the easy way around and fell back to the 
>> non-module version of the underlying JS, which fortunately were available 
>> for the lib we were using. Those then just got added to the other JS files 
>> we include direct on our app's base HTML.
>>
>> On Wednesday, 21 April 2021 at 15:18:53 UTC+1 Thomas wrote:
>>
>>> Hi Rob, good to hear. How did you solve the import of the module?
>>>
>>> On Tuesday, November 3, 2020 at 1:19:53 AM UTC+8 RobW wrote:
>>>
>>>> Thomas has very kindly posted an answer to the above SO thread. So I 
>>>> think I'm good!
>>>>
>>>> On Monday, 2 November 2020 at 10:26:56 UTC RobW wrote:
>>>>
>>>>> Just re-posting a Q I put on SO today in case anyone here has insights:
>>>>>
>>>>>
>>>>> https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop
>>>>>
>>>>> Basically, battling to figure how to integrate a library that is 
>>>>> implemented as a Javascript export function using JS modules into a GWT 
>>>>> application using JsInterop. Pretty sure there must be some way, but the 
>>>>> combination of JS module syntax/usage, lack of global namespace for JS 
>>>>> module functions is baffling me. I'm a long time Java/GWT coder, but with 
>>>>> less in depth JS knowledge. All of my JS integration in the past was done 
>>>>> with the older JSNI / wrappering approaches.
>>>>>
>>>>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7fc4cc38-b9c3-4e88-8b5f-cc7a0405359cn%40googlegroups.com.


Re: Javascript module function in GWT with JsInterop

2021-04-21 Thread Thomas
Ok, cool. Coincidentally I also want to use CodeJar, so I can work that out 
;) Cheers!

On Wednesday, April 21, 2021 at 10:25:48 PM UTC+8 RobW wrote:

> From memory, I think we took the easy way around and fell back to the 
> non-module version of the underlying JS, which fortunately were available 
> for the lib we were using. Those then just got added to the other JS files 
> we include direct on our app's base HTML.
>
> On Wednesday, 21 April 2021 at 15:18:53 UTC+1 Thomas wrote:
>
>> Hi Rob, good to hear. How did you solve the import of the module?
>>
>> On Tuesday, November 3, 2020 at 1:19:53 AM UTC+8 RobW wrote:
>>
>>> Thomas has very kindly posted an answer to the above SO thread. So I 
>>> think I'm good!
>>>
>>> On Monday, 2 November 2020 at 10:26:56 UTC RobW wrote:
>>>
>>>> Just re-posting a Q I put on SO today in case anyone here has insights:
>>>>
>>>>
>>>> https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop
>>>>
>>>> Basically, battling to figure how to integrate a library that is 
>>>> implemented as a Javascript export function using JS modules into a GWT 
>>>> application using JsInterop. Pretty sure there must be some way, but the 
>>>> combination of JS module syntax/usage, lack of global namespace for JS 
>>>> module functions is baffling me. I'm a long time Java/GWT coder, but with 
>>>> less in depth JS knowledge. All of my JS integration in the past was done 
>>>> with the older JSNI / wrappering approaches.
>>>>
>>>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/9665b936-7cc0-4d5c-8fe6-f0cd14f4a389n%40googlegroups.com.


Re: Javascript module function in GWT with JsInterop

2021-04-21 Thread 'RobW' via GWT Users
>From memory, I think we took the easy way around and fell back to the 
non-module version of the underlying JS, which fortunately were available 
for the lib we were using. Those then just got added to the other JS files 
we include direct on our app's base HTML.

On Wednesday, 21 April 2021 at 15:18:53 UTC+1 Thomas wrote:

> Hi Rob, good to hear. How did you solve the import of the module?
>
> On Tuesday, November 3, 2020 at 1:19:53 AM UTC+8 RobW wrote:
>
>> Thomas has very kindly posted an answer to the above SO thread. So I 
>> think I'm good!
>>
>> On Monday, 2 November 2020 at 10:26:56 UTC RobW wrote:
>>
>>> Just re-posting a Q I put on SO today in case anyone here has insights:
>>>
>>>
>>> https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop
>>>
>>> Basically, battling to figure how to integrate a library that is 
>>> implemented as a Javascript export function using JS modules into a GWT 
>>> application using JsInterop. Pretty sure there must be some way, but the 
>>> combination of JS module syntax/usage, lack of global namespace for JS 
>>> module functions is baffling me. I'm a long time Java/GWT coder, but with 
>>> less in depth JS knowledge. All of my JS integration in the past was done 
>>> with the older JSNI / wrappering approaches.
>>>
>>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/c54462b1-680c-4cd0-8e87-e5fb3e63afacn%40googlegroups.com.


Re: Javascript module function in GWT with JsInterop

2021-04-21 Thread Thomas
Hi Rob, good to hear. How did you solve the import of the module?

On Tuesday, November 3, 2020 at 1:19:53 AM UTC+8 RobW wrote:

> Thomas has very kindly posted an answer to the above SO thread. So I think 
> I'm good!
>
> On Monday, 2 November 2020 at 10:26:56 UTC RobW wrote:
>
>> Just re-posting a Q I put on SO today in case anyone here has insights:
>>
>>
>> https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop
>>
>> Basically, battling to figure how to integrate a library that is 
>> implemented as a Javascript export function using JS modules into a GWT 
>> application using JsInterop. Pretty sure there must be some way, but the 
>> combination of JS module syntax/usage, lack of global namespace for JS 
>> module functions is baffling me. I'm a long time Java/GWT coder, but with 
>> less in depth JS knowledge. All of my JS integration in the past was done 
>> with the older JSNI / wrappering approaches.
>>
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/4a444f80-067c-44b6-a1d3-ab72643ec729n%40googlegroups.com.


Re: Javascript module function in GWT with JsInterop

2020-11-02 Thread 'RobW' via GWT Users
Thomas has very kindly posted an answer to the above SO thread. So I think 
I'm good!

On Monday, 2 November 2020 at 10:26:56 UTC RobW wrote:

> Just re-posting a Q I put on SO today in case anyone here has insights:
>
>
> https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop
>
> Basically, battling to figure how to integrate a library that is 
> implemented as a Javascript export function using JS modules into a GWT 
> application using JsInterop. Pretty sure there must be some way, but the 
> combination of JS module syntax/usage, lack of global namespace for JS 
> module functions is baffling me. I'm a long time Java/GWT coder, but with 
> less in depth JS knowledge. All of my JS integration in the past was done 
> with the older JSNI / wrappering approaches.
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5af51388-ad3f-4a05-9434-e66110ec6b99n%40googlegroups.com.


Javascript module function in GWT with JsInterop

2020-11-02 Thread 'RobW' via GWT Users
Just re-posting a Q I put on SO today in case anyone here has insights:

https://stackoverflow.com/questions/64643227/javascript-module-function-in-gwt-with-jsinterop

Basically, battling to figure how to integrate a library that is 
implemented as a Javascript export function using JS modules into a GWT 
application using JsInterop. Pretty sure there must be some way, but the 
combination of JS module syntax/usage, lack of global namespace for JS 
module functions is baffling me. I'm a long time Java/GWT coder, but with 
less in depth JS knowledge. All of my JS integration in the past was done 
with the older JSNI / wrappering approaches.

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/b66e1077-e2c0-4053-8d62-21134b5acd09n%40googlegroups.com.