Sunday, May 14, 2023

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+unsubscribe@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.

No comments:

Post a Comment