Re: Entry point
Thank you Colin for responding , Can we use the entry point for some specific page or widget in the application? e.g. There is a dialog in the application on which if clicked on edit button , we see another dialog on which there is a button to add files. Can we use the entry point to drag and drop files over the area of that add file button ? Regards Ronit On Monday, 15 May 2023 at 04:40:28 UTC+5:30 Colin Alworth wrote: > While it is technically possible to have more than one EntryPoint declared > in your .gwt.xml files(s), order might be hard to control precisely. I > believe the order is deterministic, but not strictly defined by the > compiler (likely the order in which entry-point> tags are encountered when > parsing .gwt.xml files, but since they are permitted to have cyclical > dependencies, this is not always obvious). > > With that said, this can be a good way to compile multiple independent > applications into a single output JS (so that they avoid sending the same > classes to the browser multiple times. I've seen this done with a > conditional at the top of each entrypoint, to that way one or more > entrypoint can run at page load automatically, and each enhance the part of > the page that matters specifically to them. Ideally in this case, order of > execution will not matter, so the above concern won't apply. > > On Sunday, May 14, 2023 at 5:57:20 PM UTC-5 ronjos...@gmail.com wrote: > >> Hello Team, >> >> I am new to GWT and working on an existing system. >> >> My application has already got an entry point. Can I have one more >> implementation of the Entrypoint ? >> >> Thanks in advance >> Ronit >> > -- 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/6302e782-6cc6-4db2-ab16-b69e9531c709n%40googlegroups.com.
Re: Entry point
While it is technically possible to have more than one EntryPoint declared in your .gwt.xml files(s), order might be hard to control precisely. I believe the order is deterministic, but not strictly defined by the compiler (likely the order in which entry-point> tags are encountered when parsing .gwt.xml files, but since they are permitted to have cyclical dependencies, this is not always obvious). With that said, this can be a good way to compile multiple independent applications into a single output JS (so that they avoid sending the same classes to the browser multiple times. I've seen this done with a conditional at the top of each entrypoint, to that way one or more entrypoint can run at page load automatically, and each enhance the part of the page that matters specifically to them. Ideally in this case, order of execution will not matter, so the above concern won't apply. On Sunday, May 14, 2023 at 5:57:20 PM UTC-5 ronjos...@gmail.com wrote: > Hello Team, > > I am new to GWT and working on an existing system. > > My application has already got an entry point. Can I have one more > implementation of the Entrypoint ? > > Thanks in advance > Ronit > -- 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/3399c7a4-4221-4f91-a921-a88ede7dd5a3n%40googlegroups.com.
DataTransfer getData
Hello Team, I am new to GWT and working on an existing code. I am trying to implement a drag and drop functionality .I am having issues getting data from DataTransfer object. I need to drag and drop any file from the computer on the widget. *grid.addDropHandler(new DropHandler() {@Override public void onDrop(DropEvent event) { event.preventDefault();* *DataTransfer dataTransfer = event.getNativeEvent().getDataTransfer();* *dataTransfer.setDropEffect(DropEffect.COPY);* *Object data = dataTransfer.getData("File");* * }});* I am getting an empty-string on dataTransfer.getData("file")' How can we set the format "File" while doing dataTransfer.setData(); I think I am doing something wrong here . Please advice. Thank you Ronit -- 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/b2f9b832-3e28-419c-8af1-703a8056178en%40googlegroups.com.
Entry point
Hello Team, I am new to GWT and working on an existing system. My application has already got an entry point. Can I have one more implementation of the Entrypoint ? Thanks in advance Ronit -- 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/e16dde65-00bd-49f0-b128-3a252fa2107cn%40googlegroups.com.
Re: GWT for a Java to WASM compiler
Thanks for the info. A very good explanation in that video. But still don't understand why would this solution with WASM GC 2x faster than the *"pure transpiling"* solution? The latter is completely in JS and uses the GC from JS as it is. Does this means using JS with WASM will be 2x faster than the pure JS??? 藍 Thanks Lofi Craig Mitchell schrieb am Freitag, 12. Mai 2023 um 12:27:43 UTC+2: > At Google I/O 2023, they showed that WASM (Web Assembly) is finally > getting garbage collection (as well as shared memory). > > https://developers.googleblog.com/2023/05/bringing-kotlin-to-web.html > https://youtu.be/RcHER-3gFXI?t=604 > > They showed that JetBrains was experimenting with Kotlin compiling to WASM. > > There wasn't any mention of anyone doing Java compilation to WASM. > > I wonder how hard it would be to modify GWT to compile to WASM. > Possible? Thoughts? > -- 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/3e467b07-cc83-4238-b2d0-f2850c215e67n%40googlegroups.com.