Friday, November 30, 2018

Re: Generate user.agent independent code

If you are just using GWT JRE emulation then I think you could just only inherit Core.gwt.xml from GWT SDK. That should not give you user agent based permutation. The JRE emulation does not use deferred binding based on user agent.

Once you only have a single permutation you can use the single script linker by using <add-linker name="sso" /> in your GWT module. Then you should have just a single js file as out

-- 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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Generate user.agent independent code

Perfect, thanks!

On Friday, 30 November 2018 21:16:45 UTC+1, Lars wrote:
Try <collapse-all-properties />
See https://www.sencha.com/blog/how-to-reduce-compilation-time-for-your-gxt-projects/

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Generate user.agent independent code

Try <collapse-all-properties />
See https://www.sencha.com/blog/how-to-reduce-compilation-time-for-your-gxt-projects/

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Setting gwt.logging.logLevel

You can try add this query string to your URL:

www.urltoyourgwtapplication.com?logLevel=FINE

On Saturday, 13 October 2018 18:45:33 UTC+2, Jewgenij Moldawski wrote:
Hi Everyone @GWT,

(how?) is it possible  to change gwt.logging.logLevel if I don't have access to source code?
Can I do it in browser, where my gwt application runs?

Thank You in advance!

JeMo

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT compiler isn't allowing 'default' as a javascript object property in my JSNI block

try 'default' instead
On 30 Nov 2018, 15:17 +0100, Dylan DSouza <dylan1122@gmail.com>, wrote:
I'm porting my Java LIBGDX game to Javascript. There's some JSNI code that looks something like this:

private native void hello()
/*-{
    var object1 = {default: 'foo', b: 42};
    console.log(object1.default);
}-*/
;

GWT refuses to compile this, giving me this error:

      [ERROR] Line 38: invalid property id
>       var object1 = {default: 'foo', b: 42, c: {}};
> ------------------------^
I tried the same code in native Javascript here and it works fine.

I'm guessing 'default' is some kind of keyword that GWT isn't allowing but I need to use it, because its expected by the interface I need to send the object to, specifically the Facebook Instant SDK and its LocalizableContent object.

Any help will be appreciated!

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Generate user.agent independent code

I'm interested in compiling my GWT code unaware of any user.agent. When removing the user.agent property from the xml GWT compiles 5 permutations but I would actually like just one (for Safari, Firefox, Chrome, Edge). I can for example set the user.agent to Safari, compile it and it runs (apparently) perfectly fine in Firefox but of course I get the severe warning that: "Possible problem with your *.gwt.xml module file."

So my question is two fold:
  • Can I create just one permutation without getting a warning when loading the file
  • How could I check where GWT creates different JavaScript code for different browsers to find possible issues when just using one permutation for the listed browsers.
If it helps:
  • I'm not using any GUI functionality from GWT. Basically GWT is only glue code between TypeScript and a WebAssembly API.
  • The whole project consists of 2 GWT Projects, where one will launch a native javascript web worker which loads the 2nd GWT project.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

GWT compiler isn't allowing 'default' as a javascript object property in my JSNI block

I'm porting my Java LIBGDX game to Javascript. There's some JSNI code that looks something like this:

private native void hello()
/*-{
    var object1 = {default: 'foo', b: 42};
    console.log(object1.default);
}-*/
;

GWT refuses to compile this, giving me this error:

      [ERROR] Line 38: invalid property id
>       var object1 = {default: 'foo', b: 42, c: {}};
> ------------------------^
I tried the same code in native Javascript here and it works fine.

I'm guessing 'default' is some kind of keyword that GWT isn't allowing but I need to use it, because its expected by the interface I need to send the object to, specifically the Facebook Instant SDK and its LocalizableContent object.

Any help will be appreciated!

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Tuesday, November 27, 2018

Re: First application working as both J2CL and gwt2 at the same time

even though j2cl inside google works with bazel and not maven, since j2cl was still private there was a work done to make it work with maven, @Colin built a tool that can run j2cl in a development which uses an old version of the closure compiler to allow incremental compilation, and now as j2cl is public the work has already started to make an actual maven plugin for j2cl, the initial work started based on Colin devmode, you can see the first version of the maven plugin in dominodo j2cl-maven-plugin, the master branch is simply running using that simple devmode.. thanks to Colin.

On Tuesday, November 27, 2018 at 9:00:48 PM UTC+2, Alina Grynenko wrote:
Thanks a lot. I will try it. One more question: Why j2cl is working with maven in your application, I thought it works only with bazel? 

Am Di., 27. Nov. 2018 um 18:59 Uhr schrieb Kirill Prazdnikov <pki...@gmail.com>:
I mean different. Not collapsed, but single perm with sso linker.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

Thanks a lot. I will try it. One more question: Why j2cl is working with maven in your application, I thought it works only with bazel? 

Am Di., 27. Nov. 2018 um 18:59 Uhr schrieb Kirill Prazdnikov <pkirill@gmail.com>:
I mean different. Not collapsed, but single perm with sso linker.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

I was waiting for next weekend to start running some experiments, such notes are really helpful..

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

I mean different. Not collapsed, but single perm with sso linker.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Snail Mail: AAI Conference by Slow + Fin

Slow Ventures Snail Mail

 Snail Mail: Special Invitation – AAI Conference by Slow + Fin


Tuesday, November 27, 2018 

Welcome to another edition of Snail Mail. This week we have a special invitation to an AAI Conference hosted by Slow Ventures and Fin.

Got forwarded this and want to subscribe? Go to https://slow.claims. 
Next Tuesday 12/4 in SF, Slow and Fin are hosting an AAI (artificial-artificial intelligence) conference focused on the future of work. It will be a pretty informal "conference" including builders, investors, and thinkers in the space exploring different use cases for 🤖 + 👫 hybrid systems.

We have a great group coming (check out our 1-pager!) and room for a few more so would love for you to join! 

Dec. 4th, 2018 from 10AM - 4:30PM at The Village @ 969 Market St., 2nd Floor, San Francisco, CA 94103

AAI Conference 1-Pager (includes details and participants!)

RSVP 
https://aaiconference2018.eventbrite.com
Discount code: fulldiscount

Also, there will be 🍺 🍷 🍽 and probably some other 💩!
It is increasingly clear to most people that the future is all about machine and human hybrid systems - mixing intelligence to provide superior services in consumer and business use-cases.  Many companies are starting to move into this world, building next generation artificial-artificial intelligence systems (AAI) that are faster, high-quality, and more efficient.

AAI 2018 Conference Agenda

Morning Agenda:  The Big Picture

🤖Anatomy of AAI:  Introduction from Sam Lessin - a big picture on the future of work, and the evolution of AAI services in the last several years. (10:00AM)

👫All About People:  All AAI services have people at the core.  We will discuss:  How to weigh choices between crowdsourcing, vs. contractors, vs. full time hires? Foreign vs. Domestic?  Approaches to training, quality management, scheduling, and more. (10:20AM)

💻The Leverage of Technology & Automation:  AAI systems get leverage from technology and automation.  We discuss different approaches companies take to what they choose to automate fully, vs. semi-automate, vs. leave manual processes.  How do you fit different types of work / steps of work to technology vs. human options (10:40AM)

📐Measurement and Optimization: Measurement and data are the lifeblood of any company, human+computer hybrid systems only make measurement more difficult - because the strategies for measuring technical and human systems can be so different.  What seems to work for measuring AAI systems, and what doesn't. (11:00AM)

👀 Privacy and Security: Broadly the panel will focus on privacy being a hot topic across the technology world today, but AAI systems make things even more challenging -- because fundamentally there are people and machines touching user and client data in different ways. We would love for you to shed some light on what lessons can be learned from consumer and/or enterprise cases. (11:20AM)

💰Investing in AAI: Service businesses are traditionally difficult for venture investors to get excited about - they are harder to scale than pure technology and frequently have lower margins… Hear from a panel of investors in AAI companies on what they look for / what worries them and how they approach the market (11:40AM)


🌯PROVIDED LUNCH🥑

Afternoon Agenda:  AAI in Specific Verticals

📊Business Services: A series of AAI companies are taking on a range of corporate departments / roles… ranging from recruiting, to sales lead generation, to legal - hear from a set of companies looking at using AAI to replace or augment corporate departments beyond customer service (1:00 PM)

📌Customer Service: In many ways, customer service is the first place AAI has come into play -- it may be the first great use-case. Hear from companies focused on customer service applications of AAI        (1:30 PM) 

📈Productivity: Many AAI companies are creating / targeting services around increasing productivity of office work, or offloading specific repetitive knowledge work tasks done by white collar workers- hear from a set of companies about what works / does not work in AAI productivity (2:30 PM)

👩‍⚕️Healthcare: Healthcare is an interesting area for AAI where many great companies are sprouting up.  Hear from leaders in the space looking to apply AAI techniques to lower the cost and improve the quality of health services (2:00 PM)

🛠 Tools: One of the deep challenges of building in the AAI space is that most people end up needing to build many systems alone - the tool-chain of AAI services is still developing and young compared to pure technology.  Hear from builders that are trying to provide tools to AAI companies (3:15 PM)

🏁Closing Remarks - AAI in 2019 and Beyond:  What do we expect to change in the next year in the market. (4PM)


INFORMAL DEMOS & NETWORKING WITH 🍺 + 🍷


 
RSVP 
https://aaiconference2018.eventbrite.com
Discount code: fulldiscount

Want moar? Check us out on:
Facebook, Twitter, Medium or our Website

Signup for Snail Mail Newsletters at  http://slow.claims
Our mailing address is:
1006 Kearny St, San Francisco, CA 94133

Don't Want These Emails?
unsubscribe from this list
 

Donate BTC: 3BJW4B6GGpoQrjeom6RpVtkza3XPw2qjoK
Donate ETH: 0xD7599b3D15805aDF3144676914964e8fff53C925

Re: First application working as both J2CL and gwt2 at the same time

It seems i had a miss configured repository
can you please pull and try again?
sorry for this issue.

On Tuesday, November 27, 2018 at 11:36:57 AM UTC+2, Alina Grynenko wrote:
Hi, 
Im new to gwt. I try to build your project, but get 
Could not resolve dependencies for project org.dominokit.samples:dominodo-client:jar:1.0-SNAPSHOT: Could not find artifact com.vertispan.jsinterop:base:jar:1.0.0-SNAPSHOT in vertispan-snapshots (https://repo.vertispan.com/gwt-snapshot/) -> [Help 1]

What Im doing wrong?
Thanks.


Am Donnerstag, 22. November 2018 21:42:04 UTC+1 schrieb Ahmad Bawaneh:
Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 



for those who wants to to dig in and build the app i have prepared a github repository, find it here


happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

The GWT version already compiled with all properties collapsed


On Tuesday, November 27, 2018 at 1:02:32 PM UTC+2, Kirill Prazdnikov wrote:
I agree, if you compare GWT vs J2CL program, then it is fair to switch GWT to single permutation single-script linker before to measure.
And even more fair is to compare all if the compilers [GWT, J2CL, TeaVM], in terms of script size (compressed) and in terms of code performance (not DOM performance).

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

I agree, if you compare GWT vs J2CL program, then it is fair to switch GWT to single permutation single-script linker before to measure.
And even more fair is to compare all if the compilers [GWT, J2CL, TeaVM], in terms of script size (compressed) and in terms of code performance (not DOM performance).

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Monday, November 26, 2018

Re: First application working as both J2CL and gwt2 at the same time

Hi, 
Im new to gwt. I try to build your project, but get 
Could not resolve dependencies for project org.dominokit.samples:dominodo-client:jar:1.0-SNAPSHOT: Could not find artifact com.vertispan.jsinterop:base:jar:1.0.0-SNAPSHOT in vertispan-snapshots (https://repo.vertispan.com/gwt-snapshot/) -> [Help 1]

What Im doing wrong?
Thanks.


Am Donnerstag, 22. November 2018 21:42:04 UTC+1 schrieb Ahmad Bawaneh:
Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 



for those who wants to to dig in and build the app i have prepared a github repository, find it here


happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Saturday, November 24, 2018

Re: First application working as both J2CL and gwt2 at the same time


On Saturday, November 24, 2018 at 8:21:58 PM UTC+1, Vassilis Virvilis wrote:
Thanks for posting this.

Not sure if I read this correctly.

Assuming all other being equal (can't really be sure):

 GWT:  Loading of *.cache.js takes 433ms for 75.8KB - there is also app.nocache.js 95ms for 3.3KB
 J2CL: Loading of app.js takes 490ms for 70.5KB

The difference in timing is of course a network artifact since j2cl has less code to transmit.

Does j2cl has something equivalent of *.nocache.js. How it is linked? Does it use an iframe as GWT or is directly loaded in the document window?

J2Cl is only a Java to JS transpiler. JS compilation is done by the Closure Compiler. There's no notion of "permutation" (or, more accurately, it's a manual task, generating separate scripts, with no built-in equivalent to a selection script –GWT's *.nocache.js; btw even for GWT, Google uses server-side selection, have a look at the HTML source of Google Groups for an example).
In the case of this app, the code is loaded directly into the document; the "linker" is kind of a "hack", based on Colin's preliminary work to build a "devmode" (https://github.com/niloc132/j2cl/tree/app-building-tools) and an additional script to run the onModuleLoad (https://github.com/DominoKit/dominodo/blob/547699f501d0a85361827839f7cf005da82159d3/dominodo/dominodo-j2cl/src/main/java/org/dominokit/samples/App.native.js)

I could see a lot of GWT programs breaking if the link model changes...

J2Cl != GWT3

"Linkage" is part of the things that still need to be done for GWT3: how to handle permutations with the Closure Compiler? How about code splitting?
For apps that don't need i18n and/or code splitting, J2Cl + Closure Compiler (and the various J2Cl-compatible libs that are being developed now), and a simple "bootstrap script" (to create the entry point and call its onModuleLoad), should "just work".

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

Thanks for posting this.

Not sure if I read this correctly.

Assuming all other being equal (can't really be sure):

 GWT:  Loading of *.cache.js takes 433ms for 75.8KB - there is also app.nocache.js 95ms for 3.3KB
 J2CL: Loading of app.js takes 490ms for 70.5KB

The difference in timing is of course a network artifact since j2cl has less code to transmit.

Does j2cl has something equivalent of *.nocache.js. How it is linked? Does it use an iframe as GWT or is directly loaded in the document window?

I could see a lot of GWT programs breaking if the link model changes...

   Vassilis



On Sat, Nov 24, 2018 at 6:01 PM foal <sspiridonov@gmail.com> wrote:
Hmm... Looks like GWT wins. Yet.

GWT:



J2CL




Stas


On Thursday, November 22, 2018 at 9:42:04 PM UTC+1, Ahmad Bawaneh wrote:
Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 



for those who wants to to dig in and build the app i have prepared a github repository, find it here


happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


--
Vassilis Virvilis

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

What i dont understand from the screenshots is why the load of the static resources should be so different?!

On Sat, Nov 24, 2018, 6:01 PM foal <sspiridonov@gmail.com wrote:
Hmm... Looks like GWT wins. Yet.

GWT:



J2CL




Stas


On Thursday, November 22, 2018 at 9:42:04 PM UTC+1, Ahmad Bawaneh wrote:
Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 



for those who wants to to dig in and build the app i have prepared a github repository, find it here


happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: First application working as both J2CL and gwt2 at the same time

Hmm... Looks like GWT wins. Yet.

GWT:

GWT.png



J2CL

j2cl.png




Stas


On Thursday, November 22, 2018 at 9:42:04 PM UTC+1, Ahmad Bawaneh wrote:
Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 



for those who wants to to dig in and build the app i have prepared a github repository, find it here


happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Friday, November 23, 2018

First application working as both J2CL and gwt2 at the same time

Cool! :-)

Any numbers about the app sizes, compile and runtime speed (compared between j2cl snd gwt)?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: New Gradle plugin for GWT available

I've not used that feature much yet, but maybe similar as with the GWT plugin's embedded Jetty: by using a jetty-web.xml in the WEB-INF?

Friday Nov 23 2018 06:29:39 UTC+1 Олег Рачаев wrote:
How can I setup JNDI params for this plugin's embeded Jetty ?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Thursday, November 22, 2018

Re: New Gradle plugin for GWT available

How can I setup JNDI params for this plugin's embeded Jetty ?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

First application working as both J2CL and gwt2 at the same time

Hi
I am happy to announce that i was able to build and deploy one of my applications using both J2CL and gwt2 at the same time.
you can browse both versions here 

J2CL : https://dominokit.github.io/dominodoj2cl/index.html

GWT2 : https://dominokit.github.io/dominodo/index.html

for those who wants to to dig in and build the app i have prepared a github repository, find it here

https://github.com/DominoKit/dominodo

happy J2CLing.. :-)

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Hash of a Java Type

7|
0|
14| <- there are always these three params, we are not interested in them
(1)https://engine.localdomain/ovirt-engine/webadmin/| //URL
(2)E8B2AD24442204349EF795039C3B87E5| //policy name
(3)org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTService| //service interface
(4)runMultipleActions|//name of the method
(5)org.ovirt.engine.core.common.action.ActionType/12242454|,
(6)java.util.ArrayList/4159755760|,
(7)Z| // bool type
(8)org.ovirt.engine.core.common.action. ShutdownVmParameters/1694554255|
(9)org.ovirt.engine.core.compat.Guid/1992968158|
(10)java.util.UUID/2940008275|
(11)org.ovirt.engine.core.common.action.ActionParametersBase$EndProcedure/1568822488|
(12)java.util.Collections$EmptyMap/4174664486|
(13)org.ovirt.engine.core.common.businessentities.VDSStatus/1938301532|
(14)org.ovirt.engine.core.compat.TransactionScopeOption/1475850853|
1|
2|
3|
4|
4|- method parameters
5|- first type = ActionType
6|- second type = arraylist
7|- third type = boolean
7|- fourth type = boolean
(after that description of each method parameter follows according to serialization rules described in doc)
5(actionType)|9(shutdown)|
6(arraylist)|1(1 element)|
8 (shutdown vm parameters, list object)|1|0|0|0|
9 (guid, ?)|10(UUID)|J$m4mk9wVi3|MjeP460Xkpb|
0(commandId)|
5(actiontype)|0(unknown)|
0(compensationEnabled)|
0(correlationId)|
11(endProcedure, enum)|1(enum value, default, parent managed)|
0(entityInfo (seems no info)|
6(executionReason)|
0(imagesParameters)|
0(jobId)|
0(jobWeight)|
0(lifeInMinutes)|
0(lockProperties)|
0(multipleActions)|
12(operationsJobWeight)|0(seems zero elem)|
-6(from jobweight to vds everything was already serialized, seems in parent call)|
13(VDSStatus, prevvdsstatus)|
0(sessionId, null)|
1(shouldBeLogged)|
0(stepId)|
1(taskGroupSuccess)|
14(TransactionScopeOption)|2(enum, =required)|
0(useCinderCommandCallback)|
0(vdsRunningOn, null, guid)|
0(vdsmTaskIds)|
0(first last bool param)|
0(second last bool param)|
Hello, Thomas,

I thought I could ask one more question as a continuation of this talk. I just saw that sessionIds on oVirt are declared as transient fields. This means they are not serialized, right?
Or just set to zero? (I just ask as I manged to match a zero value against this field in every message in ActionParametersBase)

public class ActionParametersBase implements Serializable, HasCorrelationId {
    private static final long serialVersionUID = 4872560145516614773L;

    private Guid commandId;
    private transient String sessionid;




пн, 5 нояб. 2018 г. в 20:57, Thomas Broyer <t.broyer@gmail.com>:
ActionReturnValue uses a CustomFieldSerializer: https://github.com/oVirt/ovirt-engine/blob/11580030b10331d6f671801206050b5cf393b229/frontend/webadmin/modules/gwt-extension/src/main/java/org/ovirt/engine/core/common/action/ActionReturnValue_CustomFieldSerializer.java

1 → ArrayList
1 → length
2 → ActionReturnValue
0 → isValid(boolean)
1 → validationMessages (arraylist)
3 → length
3 → String
4 →VAR_ACTION_RUN
3 → String
5 → VAR_TYPE_VM
3 → String
6 → USER_NOT_AUTHORIZED_TO_PERFORM_ACTION
1 → executeFailedMessages (arraylist)
0 → length
0 → succeeded(boolean)
0 →isSynchronous(boolean)
7 → description = "vm1"
1 → taskPlaceHolderIdList (arraylist)
0 → length
1 → vdsmTaskIdList (arraylist)
0 → length
1 → endActionTryAgain(boolean)
8 → fault (EngineFault)

On Monday, November 5, 2018 at 4:24:34 PM UTC+1, Anastasiya Ruzhanskaya wrote:
Hi!
Thank you for your answer.
I started to explore the answers which are sent using the same rules I suppose. But faced with some inconsistency.
Here is the example:

//OK[0,0,10,0,471,9,8,1,0,1,0,1,7||,0,0,0,1,6,3,5,3,4,3,3,1,0,2,1,1,[(1)"java.util.ArrayList/4159755760",(2)"org.ovirt.engine.core.common.action.ActionReturnValue/4163585948",(3)"java.lang.String/2004016611",(4)"VAR__ACTION__RUN",(5)"VAR__TYPE__VM",(6)"USER_NOT_AUTHORIZED_TO_PERFORM_ACTION",(7)"vm1",(8)"org.ovirt.engine.core.common.errors.EngineFault/2377218566",(9)"org.ovirt.engine.core.common.errors.EngineError/1938278732",(10)"ENGINE"],0,7]

1->"java.util.ArrayList/4159755760"

1->1 element

2->"org.ovirt.engine.core.common.action.ActionReturnValue/4163585948" (type of one value)

0->correlationId(string)


description (string) (??)
endActionTryAgain (boolean)(??)


1->executeFailedMessages(arraylist)

3-> 3 elements

3-> string type

4->"VAR__ACTION__RUN"

3->string type

5->"VAR__TYPE__VM"

3-> string type

6->"USER_NOT_AUTHORIZED_TO_PERFORM_ACTION"


8->fault(enginefault)

9->engineError

471->type of error


internalVdsmTaskIdList(arraylist) (??)
isSynchronous(boolean) (??)
jobId(guid) (??)
returnValue(object) (??)
succeeded(boolean)  (??)
taskPlaceHolderIdList(arraylist) (??)
valid(boolean) (??)
0->validationMessages(arraylist) (??)
0->vdsmTaskIdList(arraylist) (??)



I sorted the field of ActionReturn Value but the provided values do not really match them.

I would say that not sorted fields match better here. The two sequences I am sure in are 6,3,5,3,4,3,3,1 and 471,9,8

The sorted fields of ActionReturnValue are:


correlationId  description  endActionTryAgain  executeFailedMessages  fault  internalVdsmTaskIdList  isSynchronous  jobId  returnValue  succeeded  taskPlaceHolderIdList  valid  validationMessages  vdsmTaskIdList



вт, 30 окт. 2018 г. в 17:03, Thomas Broyer <t.broyer@gmail.com>:
The hash is a hash of the class, not the value. It's there to ensure that the client and server use the exact same classes, with the same fields, of the same types, in the same order.
This means that the value is dependent on the version of oVirt that you're using, and only on the version of oVirt. IIRC, you should be able to find them in the serialization policy files, or of course in the JS files running in the browser (the hash is computed at compile-time, not at runtime, at least on the client-side, can't remember on the server)
Whenever you update oVirt, the hashes might change, which means that the way the objects are serialized/deserialized has changed; this means you'll then need to update your proxy to account for the changes.

On Tuesday, October 30, 2018 at 1:51:13 PM UTC+1, Anastasiya Ruzhanskaya wrote:
Are there any ideas about this hash function?

пн, 29 окт. 2018 г. в 11:38, Anastasiya Ruzhanskaya <anastasiya.ruzhanskaya@frtk.ru>:
Hello!
I am trying to build a proxy, which will intercept requests from oVirt and send errors if the action should not be performed. I just need to implement it in such a manner due to some legacy issues with using internal access control.

I think that by importing some information from oVirt I can easily parse the message in order to find the action type and id of the object on which it is performed.

The problem is with the answer: I need to send the valid answer.
I created a user in oVirt which is a read-only user. So, I get the following answer:

//OK[0,0,10,0,471,9,8,1,0,1,0,1,7,0,0,0,1,6,3,5,3,4,3,3,1,0,2,1,1,["java.util.ArrayList/4159755760","org.ovirt.engine.core.common.action.ActionReturnValue/4163585948","java.lang.String/2004016611","VAR__ACTION__SHUTDOWN","VAR__TYPE__VM","USER_NOT_AUTHORIZED_TO_PERFORM_ACTION","vm1","org.ovirt.engine.core.common.errors.EngineFault/2377218566","org.ovirt.engine.core.common.errors.EngineError/1938278732","ENGINE"],0,7]

I think the answer should be always pretty the same (maybe only for some cases another one). The only thing which I find tricky here is how to generate a valid hash value?

I found a function in sources of GWT but it accepts a serialization policy and the custom serializers (which is not appropriate for me as for incoming requests I will always look for action type and then object, and for answers I want just to generate this type errors, which I provided above, so I want to include to my proxy as minimum additional information as possible).

So, I would like to find an easy way of generation this hash values (org.ovirt.engine.core.common.errors.EngineFault/2377218566). Or probably it is even possible not ti generate them at all?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.