Tuesday, December 17, 2019

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

It seems I am having the same or a simmilar issue as Alina had.
I have searched a little bit and read about adding the correct repository to the maven settings.xml. But  I have no clue what repo to add and in which profile.


mvn -Pdevmode
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building dominodo-j2cl 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.vertispan.com/gwt-snapshot/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/maven-metadata.xml
Downloading: https://repo.vertispan.com/gwt-snapshot/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT.pom
[WARNING] The POM for org.dominokit.samples:dominodo-client:jar:1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.dominokit.samples:dominodo-client:jar:sources:1.0-SNAPSHOT is missing, no dependency information available
Downloading: https://repo.vertispan.com/gwt-snapshot/com/google/jsinterop/jsinterop-annotations/HEAD-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/google/jsinterop/jsinterop-annotations/HEAD-SNAPSHOT/maven-metadata.xml
Downloading: https://repo.vertispan.com/gwt-snapshot/com/google/jsinterop/jsinterop/HEAD-SNAPSHOT/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/com/google/jsinterop/jsinterop/HEAD-SNAPSHOT/maven-metadata.xml
Downloading: https://repo.vertispan.com/gwt-snapshot/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT.jar
Downloading: https://repo.vertispan.com/gwt-snapshot/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT-sources.jar
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT.jar
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/dominokit/samples/dominodo-client/1.0-SNAPSHOT/dominodo-client-1.0-SNAPSHOT-sources.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.590 s
[INFO] Finished at: 2019-12-17T15:05:13+01:00
[INFO] Final Memory: 12M/47M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project dominodo-j2cl: Could not resolve dependencies for project org.dominokit.samples:dominodo-j2cl:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: org.dominokit.samples:dominodo-client:jar:1.0-SNAPSHOT, org.dominokit.samples:dominodo-client:jar:sources:1.0-SNAPSHOT: Failure to find org.dominokit.samples:dominodo-client:jar:1.0-SNAPSHOT in https://oss.sonatype.org/content/repositories/google-snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of google-snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

--
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/545b0594-b54b-406f-98b2-5ba59def4e20%40googlegroups.com.

Wednesday, December 11, 2019

Re: Execution order of cache.js versus other script tags

Thanks!

On Wednesday, December 11, 2019 at 2:45:30 AM UTC-8, Jens wrote:
Usually you would use GWT's ScriptInjector together with ClientBundle + TextResource/ExternalTextResource. That way you can either embed your external JS into the GWT JS (TextResource) so it downloads as part of your app download or you let the GWT app asynchronously download the JS when needed (ExternalTextResource).

You can also use GWTs XML modules to include additional scripts which will be loaded before your entry point starts. But it could be that it won't be compatible with future GWT versions based on J2CL. http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideAutomaticResourceInclusion

-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a5ac1310-ecc8-4be8-8f95-7616d3efd8f4%40googlegroups.com.

dn-components new GWT UI library

landing page: dncomponents.com 

Client side java UI framework for building rich web applications written purely in Java language using GWT compiler and elemental2 browser API without any external js libraries.

dn-components layered architecture makes process of developing modern complex user interfaces with ease.
Html binder and intellij plugin are the great tools that support this.

dn-components can have different view implementations. 

Default view implementation is based on bootstrap framework (only css and markup). The second is google Material design (work in progress)

- All the view implementations are in one java file 
- And all markup for all components are in one html file 

dn-components component has 3 layers of separation.

Each component has constructor where you can inject your custom view implementation that can accept different markups.

That means that you can easily customize component's views on application level by editing BootstrapUi.java or BootstrapUi.html or single component by injecting its view.

--
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/2e94d372-07ce-4577-b15c-d8ed5be041d0%40googlegroups.com.

Re: Execution order of cache.js versus other script tags

Usually you would use GWT's ScriptInjector together with ClientBundle + TextResource/ExternalTextResource. That way you can either embed your external JS into the GWT JS (TextResource) so it downloads as part of your app download or you let the GWT app asynchronously download the JS when needed (ExternalTextResource).

You can also use GWTs XML modules to include additional scripts which will be loaded before your entry point starts. But it could be that it won't be compatible with future GWT versions based on J2CL. http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideAutomaticResourceInclusion

-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/f1eced63-8c79-4410-9eea-4601ba318539%40googlegroups.com.

Tuesday, December 10, 2019

Execution order of cache.js versus other script tags

My GWT code uses a an external javascript library through JsInterop and I want that library to download in parallel with my cache.js file, but execute before the cache.js file does. The problem is that the nocache.js injects the cache.js file into the page and any injected script tags are automatically loaded as async rather than defer, which means that if the cache.js file download finishes prior to the library, it will be executed first. Is there a way to download cache.js in parallel, but stop cache.js file from executing until other script tags have executed?

The code below is what I currently have. It guarantees that the execution order will correct, but the cache.js file won't even be injected and begin downloading until the library js file has downloaded and executed, which makes the page load much slower than if the cache.js file were downloaded in parallel with library.js.

<html>
   
<head>
       
<script defer src="library.js"></script>
       
<script defer src="myproject.nocache.js" ></script>
   
<head>
...
</html>




--
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/0ac16b61-ae9f-4484-974f-9b0288546f50%40googlegroups.com.

Sunday, December 8, 2019

Re: gwt-dev.jar - uses jdk internal API not compatible for Java11

Cross reference: https://github.com/gwtproject/gwt/issues/9677


--
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/5bca3183-ff8d-454f-979b-30cfd93f322d%40googlegroups.com.

Friday, December 6, 2019

gwt-dev.jar - uses jdk internal API not compatible for Java11

Hi All,

we are using gwt-dev.jar for our application, in which Java11 is being implemented. As analysis, we found out that below classes, present in jar are having some issues - 
com.google.gwt.dev.url.CloseableJarHandler uses sun.net.www.protocol.jar.Handler (JDK internal API (java.base))
org.apache.tools.ant.taskdefs.email.UUMailer uses sun.misc.UUEncoder (JDK internal API (JDK removed internal API)).

Any idea what is significance of these classes & where they are used?
Also, are there any plans to support this jar with Java11.

--
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/a1de3a57-9479-4c27-9c94-ef01de73b974%40googlegroups.com.