Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread lofid...@gmail.com
;-) Thanks, I'll try... Cheers, Lofi alex...@gmail.com schrieb am Mittwoch, 3. März 2021 um 10:24:07 UTC+1: > Oh. Tks. > I see it. > Awesome project, You should publish a article for this knowledge. > > > > lofid...@gmail.com 于2021年3月3日周三 下午5:11写道: > >> The Calculator in my example above

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread Zhang Alex
Oh. Tks. I see it. Awesome project, You should publish a article for this knowledge. lofid...@gmail.com 于2021年3月3日周三 下午5:11写道: > The Calculator in my example above is a GWT Widget ;-) See: >

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread lofid...@gmail.com
The Calculator in my example above is a GWT Widget ;-) See: https://github.com/lofidewanto/gwt-widget-jsinterop/blob/main/src/main/java/com/github/lofi/client/Calculator.java I made a new example here: https://github.com/lofidewanto/gwt-widget-jsinterop So this doesn't have anything to do with

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread Zhang Alex
Yes, It could be ok. I will try it later. Thank you. Regards Thomas Broyer 于2021年3月3日周三 上午2:36写道: > I would: > >1. create a new *.gwt.xml with a new EntryPoint that won't launch the >GWT app but instead expose a function (using JsInterop) to "run" your > module >2. that function

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread Zhang Alex
Sorry Let explain more detail. In your example, I can access exposed java class (Calculator) and call function calculateSum, but it's common function not contain any gwt UI widget Does export gwt UI module also work by use same way? Tks lofid...@gmail.com 于2021年3月3日周三 下午4:44写道: > Hmm... cannot

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread lofid...@gmail.com
Hmm... cannot see what do you mean about expose? alex...@gmail.com schrieb am Mittwoch, 3. März 2021 um 09:30:36 UTC+1: > Expose GWT widget also work same way? > Using your project pom.xml can''t package , like this: > " > >

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread Zhang Alex
Expose GWT widget also work same way? Using your project pom.xml can''t package , like this: " https://raw.githubusercontent.com/intendia-oss/rxjava-gwt/mvn-repo/org/junit/platform/junit-platform-launcher/1.6.2/junit-platform-launcher-1.6.2.jar 404 " Tks. 在2021年3月3日星期三 UTC+8 下午4:07:15 写道: >

Re: Can I create GWT Widget in javascript code?

2021-03-03 Thread lofid...@gmail.com
OK, it's working now with: setTimeout https://github.com/lofidewanto/gwt-widget-jsinterop/blob/main/src/main/java/com/github/lofi/public/testcalculator-withwait.js Now you can see in the example how to call your Widget from JavaScript... Just simple as creating that object and use as you

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread lofid...@gmail.com
I build a simple example: https://github.com/lofidewanto/gwt-widget-jsinterop I also found some answer in StackOverflow but it's all Java based (see the README above). What I understood is that the Widget should be called from a pure JS (VueJS or whatever JS). - Calculator.java

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread Thomas Broyer
I would: 1. create a new *.gwt.xml with a new EntryPoint that won't launch the GWT app but instead expose a function (using JsInterop) to "run" your module 2. that function would use receive an element ID and use RootPanel.get(id) to put the GWT UI inside (that's not the only way,

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread Andrea Stocchero
Charba is a library which is wrapping CHART.JS to provide charts in GWt and J2Cl appliation and for GWT a chat can be a widget. Almost everything by JSINTEROP. https://github.com/pepstock-org/Charba/tree/master/src/org/pepstock/charba/client/gwt/widgets https://github.com/pepstock-org/Charba

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread Boris Brudnoy
Would vue-gwt (https://github.com/VueGWT/vue-gwt) help your scenario? *Boris Brudnoy* Web Software Engineer | LinkedIn | StackOverflow I created RecipeLot.com, a companion for culinary enthusiasts.

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread Zhang Alex
since now not yet! I have a large application build with gwt 2.8 + Gxt recently, other company need integration some UI into it's web application, eg: div Does JsInterop suitable my Scene Thank for your example case 在2021年3月2日星期二 UTC+8 下午4:58:00 写道: > Never wrap a Widget with JsInterop

Re: Can I create GWT Widget in javascript code?

2021-03-02 Thread lofid...@gmail.com
Never wrap a Widget with JsInterop before... but just like in this article I wrapped a Calculator with JsInterop so that afterwards I could use it from JavaScript. https://bit.ly/WebJavaStory Did you try to wrap your Widget with JsInterop? alex...@gmail.com schrieb am Dienstag, 2. März 2021

Can I create GWT Widget in javascript code?

2021-03-01 Thread Zhang Alex
For example: I have a vue app and classic gwt application, The gwt application have lot of module . but I only want to one module (eg: A query UI) integration to my vue app using js How can I done this? Tks. -- You received this message because you are subscribed to the Google Groups "GWT