Friday, September 27, 2019

Re: BPM designer

I'm part of the engineering group that builds a designer in GWT. Please check the following references:

 - https://github.com/kiegroup/lienzo-core
 - https://github.com/kiegroup/kie-wb-common/tree/master/kie-wb-common-stunner

And here is our recent announcement:

https://porcelli.me/announcement/tooling/vscode/bpmn/2019/09/11/new-vscode-gui-editor.html

Regards,
Alex Porcelli

On Monday, September 16, 2019 at 8:44:00 AM UTC-4, David wrote:
I am assigned to develop BPM designer. I like to use GWT to achieve it. But I can not find good GWT library to achieve it. I like to hear your recommendation.

Thanks,

David

--
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/12cbfc49-f3d1-494f-9237-0c5c145909e6%40googlegroups.com.

Wednesday, September 18, 2019

Re: Maven Plugin for GWT: "An internal error occurred during: "BBj - GWT Compile". Model not available for BBj"

(That should have said " after updating to Eclipse 2019-09 today.")

On Wednesday, September 18, 2019 at 11:22:07 AM UTC-7, Jim Douglas wrote:
I was able to get a Java 11 / Eclipse 2019-06 development environment building my GWT project with Maven Plugin for GWT a few months ago, but the GWT compile stopped working after updating to Eclipse 2019-06 today, and the error message doesn't give me much to work with. Any idea what this is trying to tell me?

An internal error occurred during: "BBj - GWT Compile".

Model not available for BBj


GWT-compile.png



Here's the pom.xml file for my BBj package:

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>BBj</groupId>

<artifactId>BBj</artifactId>

<version>19.20-SNAPSHOT</version>

    <packaging>gwt-app</packaging>

<dependencyManagement>

<dependencies>

<dependency>

<groupId>com.google.gwt</groupId> 

<artifactId>gwt</artifactId>

<version>2.8.2</version>

<type>pom</type>

<scope>import</scope>

</dependency>

</dependencies>

</dependencyManagement>

<dependencies>

<dependency>

<groupId>com.google.gwt</groupId>

<artifactId>gwt-user</artifactId>

</dependency>

<dependency>

<groupId>com.google.gwt</groupId>

<artifactId>gwt-dev</artifactId>

<exclusions>

<exclusion>

<groupId>xml-apis</groupId>

<artifactId>xml-apis</artifactId>

</exclusion>

<exclusion>

<groupId>net.sourceforge.htmlunit</groupId>

<artifactId>htmlunit</artifactId>

</exclusion>

</exclusions>

</dependency>

</dependencies>

<build>

<sourceDirectory>src</sourceDirectory>

<resources>

<resource>

<directory>src</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</resource>

<resource>

<directory>.apt_generated</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</resource>

</resources>

<plugins>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.8.0</version>

<configuration>

<release>11</release>

</configuration>

</plugin>

<plugin>

<groupId>net.ltgt.gwt.maven</groupId>

<artifactId>gwt-maven-plugin</artifactId>

<version>1.0-rc-10</version>

<extensions>true</extensions>

<configuration>

<moduleName>com.basis.bbj.web.gwt.GWTWebClient</moduleName>

                    <outputDirectory>war/WEB-INF/classes</outputDirectory>

</configuration>

</plugin>

</plugins>

</build>

</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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/49e18b35-cbaf-419e-861b-b451ffa7c55b%40googlegroups.com.

Maven Plugin for GWT: "An internal error occurred during: "BBj - GWT Compile". Model not available for BBj"

I was able to get a Java 11 / Eclipse 2019-06 development environment building my GWT project with Maven Plugin for GWT a few months ago, but the GWT compile stopped working after updating to Eclipse 2019-06 today, and the error message doesn't give me much to work with. Any idea what this is trying to tell me?

An internal error occurred during: "BBj - GWT Compile".

Model not available for BBj


GWT-compile.png



Here's the pom.xml file for my BBj package:

<project xmlns="http://maven.apache.org/POM/4.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>BBj</groupId>

<artifactId>BBj</artifactId>

<version>19.20-SNAPSHOT</version>

    <packaging>gwt-app</packaging>

<dependencyManagement>

<dependencies>

<dependency>

<groupId>com.google.gwt</groupId> 

<artifactId>gwt</artifactId>

<version>2.8.2</version>

<type>pom</type>

<scope>import</scope>

</dependency>

</dependencies>

</dependencyManagement>

<dependencies>

<dependency>

<groupId>com.google.gwt</groupId>

<artifactId>gwt-user</artifactId>

</dependency>

<dependency>

<groupId>com.google.gwt</groupId>

<artifactId>gwt-dev</artifactId>

<exclusions>

<exclusion>

<groupId>xml-apis</groupId>

<artifactId>xml-apis</artifactId>

</exclusion>

<exclusion>

<groupId>net.sourceforge.htmlunit</groupId>

<artifactId>htmlunit</artifactId>

</exclusion>

</exclusions>

</dependency>

</dependencies>

<build>

<sourceDirectory>src</sourceDirectory>

<resources>

<resource>

<directory>src</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</resource>

<resource>

<directory>.apt_generated</directory>

<excludes>

<exclude>**/*.java</exclude>

</excludes>

</resource>

</resources>

<plugins>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.8.0</version>

<configuration>

<release>11</release>

</configuration>

</plugin>

<plugin>

<groupId>net.ltgt.gwt.maven</groupId>

<artifactId>gwt-maven-plugin</artifactId>

<version>1.0-rc-10</version>

<extensions>true</extensions>

<configuration>

<moduleName>com.basis.bbj.web.gwt.GWTWebClient</moduleName>

                    <outputDirectory>war/WEB-INF/classes</outputDirectory>

</configuration>

</plugin>

</plugins>

</build>

</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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/5c1b6b87-3fce-4d89-a982-4a88a34cfa12%40googlegroups.com.

Jsinterop: java arrays, native arrays, JsArray and strings

Hi,

I want to know if a java array is the same underlying object with a js native array.

    @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
    public static class MyObject {
        int x;
       
        @JsOverlay
        public static MyObject create(int x) {
            final MyObject o = new MyObject();
            o.x = x;
            return o;
        }
    }


    @Override
    public void onModuleLoad() {
        // check if java arrays are implemented by the same underlying native array
        final MyObject[] java_array = new MyObject[] { MyObject.create(1), MyObject.create(4), MyObject.create(16) };
        DomGlobal.console.log((Object) java_array);
        // cast to nativeJsArray<double>
        final JsArray<MyObject> js_array = Js.uncheckedCast(java_array);
        DomGlobal.console.log(js_array);
        // delete second object
        // DomGlobal.window.alert("Check this out");
        js_array.splice(1, 1);
        DomGlobal.console.log((Object) java_array);
        DomGlobal.console.log(js_array);
        return;
   }

Results:

Array(3) [ {}, {}, {} ]
Array(3) [ {}, {}, {} ]
Array [ {}, {} ]
Array [ {}, {} ]

So the splice call succeeds and I can remove elements from the java array. Cool. So this is evidence that java arrays are backed by js arrays,

So
  • Arrays, double are mapped to native types.
  • We have @JsFunction and Function
  • int is mapped to js number --> double
Is it possible to also map java.lang.String to native JsString

        final JsString x1 = new JsString("x1");
        DomGlobal.console.log(x1);
        final String x2 = Js.uncheckedCast(x1);
        DomGlobal.console.log((Object) new String[] {x2});
        final String x3 = x2.replaceAll("1", "3");
        DomGlobal.console.log((Object) new String[] {x3});
        return;

Results:
String { "x1" } <- native js string
Array [ String ] <-- java clas String with value "x1"
Array [ "x3" ] <- native js string ???? Why?

I don't really understand the results. Any comment?



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAKbOjEyLT3BTSoCDM-2SkmGz1BD93ynCDw9GvgG5B4p8ovUp0g%40mail.gmail.com.

Tuesday, September 17, 2019

Re: BPM designer

I thnks smartgwt offers that but there are other libraries around. I uses lienzo-charts code but you would nee to update that. It's a bit old.





Op maandag 16 september 2019 14:44:00 UTC+2 schreef David:
I am assigned to develop BPM designer. I like to use GWT to achieve it. But I can not find good GWT library to achieve it. I like to hear your recommendation.

Thanks,

David

--
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/363afe7d-77b7-4462-b26e-b4bc5f0680a2%40googlegroups.com.

Re: BPM designer

I am implementing a BPM tool (https://www.appollo-systems.com). Our team use a graphical library(propetary) called YFiles.

Best Regards,

On Mon, Sep 16, 2019 at 8:44 AM, David <leeon2013@gmail.com> wrote:
I am assigned to develop BPM designer. I like to use GWT to achieve it. But I can not find good GWT library to achieve it. I like to hear your recommendation.

Thanks,

David

--
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/c375a33f-13d1-4e22-b3da-37dfaa530e3e%40googlegroups.com.

--
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/1568740228.14644.0%40gmail.com.

Re: BPM designer

I think you need to be a bit more specific. What exactly are you looking for? What kind of library? What specific things do you want this library to do? And BPM stands for "Business Process Modeling"? Looks like Red Hat's jBPM uses GWT and it's open source.


On Monday, September 16, 2019 at 6:44:00 AM UTC-6, David wrote:
I am assigned to develop BPM designer. I like to use GWT to achieve it. But I can not find good GWT library to achieve it. I like to hear your recommendation.

Thanks,

David

--
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/e66551f1-ccfc-4fc9-b9a0-ca9886f1e740%40googlegroups.com.

Monday, September 16, 2019

BPM designer

I am assigned to develop BPM designer. I like to use GWT to achieve it. But I can not find good GWT library to achieve it. I like to hear your recommendation.

Thanks,

David

--
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/c375a33f-13d1-4e22-b3da-37dfaa530e3e%40googlegroups.com.

Wednesday, September 11, 2019

Re: GWT Support for Touch Event

Jens:

Earlier you said "Touch devices usually emulate classic click / mouse move events as well". I have seen the mouse event handlers handling TouchStart consistently, as you said. But the same is not true for TouchMove. I have code that has been working as expected in handling mouse events. But the same set of code work only for the TouchStart.

event.preventDefault() & event.stopPropagation() didn't make any difference.

I see the value in creating a sample project to isolate the error. Thanks for your suggestion, we will work on that.

--Velu

On Sunday, September 8, 2019 at 12:21:44 PM UTC-4, Jens wrote:

So you are saying the browser fires a touchend event but the GWT event handler isn't called as a result?

or touchmove

--
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/e61ba3cc-8e5c-4750-a238-f48a712c3f95%40googlegroups.com.

Re: GWT Support for Touch Event

Craig:

This seems to be an unyielding beast, at least for me.

I have added event.preventDefault() and event.stopPropagation() and tried. The major difference between your app and my app is the use of canvas vs SVG. I'm using SVG.

I do see TouchStart, TouchMove, & TouchEnd but inconsistently.

I'm stopping this effort for now and revisit later.

Thanks for your suggestions.

On Monday, September 9, 2019 at 10:07:15 PM UTC-4, Craig Mitchell wrote:
Ah, sorry, yes. I was remembering.

Maybe try calling preventDefault and/or stopPropagation on the event.

On my app, all the events come through perfectly.  I do however, only have a Canvas on the page.  No other HTML elements to mess with the events.

--
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/812f0896-8fac-4d25-a877-fa4327316277%40googlegroups.com.

Tuesday, September 10, 2019

Re: GWT CSP compliance ('unsafe-inline' rule)

Thank you so much for suggestions, it helped me.

On Monday, September 9, 2019 at 5:09:29 PM UTC+3, Thomas Broyer wrote:


On Monday, September 9, 2019 at 3:36:00 PM UTC+2, Yuriy Ostapyuk wrote:
Hello.

I'm struggling with GWT vs CSP problem, specifically 'unsafe-inline' rule.

I have an application with several deferred modules, which are compiled and linked with 'xsiframe' or 'direct_install' linkers. And my problem is that linkers use ScriptTagLoadingStrategy, which uses callbacks and eventually appends (and then deletes) <script> tag to GWT iframe with inline javascript in it, which in the end violates 'unsafe-inline' rule. I've experimented with default linkers and found out that 'sso' (SingleScriptLinker) fixes the problem, but unfortunately it's not the case for me, as it not support several modules/fragments.

So, I'm wondering maybe someone has already researched this problem or knows some kind of custom linker, which is using a different strategy to support CSP.

Thank you in advance for any help or suggestion.

Most important here in the end is the TODO comment; but that means you should be able to create your own custom linker that would override that method (and possibly others, e.g. getJsRunAsync).

But currently, yes, you need unsafe-inline (and/or CSP3's strict-dynamic, and/or CSP2's hash sources –it should be possible to compute those hashes at compile-time using a special linker; in the worst case a special CrossSiteIframeLinker's wrapDeferredFragment override–)

--
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/c3b073fa-8640-4862-a135-817ac1fc47c8%40googlegroups.com.

Re: Hammer GWT Support for Touch Event

I don't think so.
I would just copy the code into your own 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/38f51d26-618d-48ae-830e-7b66f899dd90%40googlegroups.com.

Monday, September 9, 2019

Re: GWT Support for Touch Event

Ah, sorry, yes. I was remembering.

Maybe try calling preventDefault and/or stopPropagation on the event.

On my app, all the events come through perfectly.  I do however, only have a Canvas on the page.  No other HTML elements to mess with the events.

--
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/dd89ab9c-b391-4c03-96ef-c8832f3a3f66%40googlegroups.com.

Re: GWT Support for Touch Event

Craig:

Tried your suggestion, apparently drawingPaper.addDomHandler and drawingPaper.addHandler are behaving identically. The first touch (equivalent to mouse button down), the first "touch move" (mouse move) and touch end (mouse button up) are working as expected. The subsequent touches and touch moves are unpredictable. It appears that once a touch event is handled (touch down or touch move or touch end) there appears to be a requirement to do a "cleanup". Though it's not clear what it is supposed to be. Any ideas? Please let me know.

Thank You
-Velu

On Monday, September 9, 2019 at 1:49:47 PM UTC-4, Velusamy Velu wrote:
Craig:

I appreciate your suggestion. Behind the scene I'm handling multiple touches, though only one touch is being considered. The difference between your approach and mine is drawingPaper.addDomHandler and drawingPaper.addHandler. I will give it a try and let you know.

Thank You
--v

On Monday, September 9, 2019 at 4:40:38 AM UTC-4, Craig Mitchell wrote:
I found this as well.  I think browser implementation of these old single touch events isn't great.  I switched to using the multi touch versions.  Something like this:

private HashMap<Integer, Touch> touches;

private void handleScreenTouches(JsArray<Touch> newTouches, boolean touchDown) {
  // Update the touch collection
  for (int i=0; i<newTouches.length(); i++) {
    Touch touch = newTouches.get(i);
    if (touch != null) {
      if (touchDown) {
        touches.put(touch.getIdentifier(), touch);
      }
      else {
        touches.remove(touch.getIdentifier());
      }
    }
  }

  // Look through the remaining touches
  for (Touch touch : touches.values()) {
    ...
  }
}

drawingPaper
.addDomHandler(event -> {
    handleScreenTouches
(event.getChangedTouches(), true);
}, TouchStartEvent.getType()));


drawingPaper
.addDomHandler(event -> {
    handleScreenTouches
(event.getChangedTouches(), true);
}, TouchMoveEvent.getType()));


drawingPaper
.addDomHandler(event -> {
    handleScreenTouches
(event.getChangedTouches(), false);
}, TouchEndEvent.getType()));

--
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/86a08eab-51b0-47f5-ac6d-6120359e648a%40googlegroups.com.