Thursday, December 28, 2017

Re: GWT - Auto logout after user inactivity

Hi,

Define a method in your service that returns the last time the user interacted with the server (in the code below it is getLastRequest()).

In your main screen define these variables:
protected static final long DEFAULT_TIMEOUT = 20 * 60 * 1000l; // 20 minutes
protected static final long ABSOLUTE_TIMEOUT = 12 * 60 * 60 * 1000l; // 12 hours
private long TIMEOUT = DEFAULT_TIMEOUT;
   
After displaying main screen, run something like this:
  
       final long loginTime = System.currentTimeMillis();
     Scheduler.get().scheduleFixedPeriod(new RepeatingCommand() {

      @Override
      public boolean execute() {
       long dif = System.currentTimeMillis() - MYSERVICE.getLastRequest(); 
       long loginDif = System.currentTimeMillis() - loginTime;
       if (dif > TIMEOUT || loginDif > ABSOLUTE_TIMEOUT) {
        MYSERVICE.getService().logout(user.getId(), new AsyncCallback<String[]>() {

         @Override
         public void onFailure(Throwable caught) {
          // TODO handle error
         }

         @Override
         public void onSuccess(String[] result) {
          MYSERVICE.getController().handleEvent(new AppEvent(AppEvents.Logout));    
          if (!result[0].equals(Responses.SUCCESS)) {
            // TODO display login screen   
          }
         }
        });
        return false;
       }
       return true;    //as long as it returns true the execute is repeated after XX milliseconds 
      }
   }, 10000);


Hope this helps,
Rodolfo M. Raya



On Thu, Dec 28, 2017 at 1:34 PM Devaraj Rathinasamy <rdevaraj.it@gmail.com> wrote:
We need to auto log out the user after a max user inactivity time (say 5 mins) in our GWT MVP with history management application.  Appreciate any inputs on how to proceed implementation for this.

We have session timeout at service level. so if any interaction happens with the server, server session will be validated and inactivated if expired. But in above case, user should be auto logged out after max inactivity time without any user interaction. 

--
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.

GWT and Cordova/PhoneGap - use JsInterop?

I would like to use Cordova/PhoneGap with a GWT project.  I'm wondering if anyone has any pointers on how to understand the workflow I should/could use.

I have seen gwt-phonegap libraries on Github, but I'm not sure if those are still something that should be considered or if I should just try to use JsInterop to glue everything together.  Having said that, however, I really don't know how I would be able to use Cordova functionality inside the GWT java code.

Anyone have any pointers on the best way to proceed.

PD

--
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.

Wednesday, December 27, 2017

Re: ERROR: The serialization policy file 'xxx.gwt.rpc' was not found; did you forget to include it in this deployment?

Hello,

here are some additional findings:

  • The error message only appears when launching the project within eclipse. I don't see any errors when launching the project with "mvn gwt:devmode".

  • The CodeServer runs with different parameters when started from within eclipse and when started from commandline

    • eclipse:
      Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]

    • commandline: mvn gwt:devmode
      Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -workDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/gwt/devmode/work, -launcherDir, /home/wagner/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]     

The launcherDir and worDir parameters show signifant differences, but I cannot tell if that is related to the error message.

This problem may be specific to my environment. I don't expect a straight solution, but I would appreciate any hints.
What can I check, where should I look at. Where to go from here?

Thanks
Magnus



--
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.

ERROR: The serialization policy file 'xxx.gwt.rpc' was not found; did you forget to include it in this deployment?

Hello,

I am reorganizing some maven GWT projects, i. e. moving common code out of app projects into libraries and so on. Until now, I have moved only classes from the shared directory. I did not touch the server-side code yet.

However, I am actually getting this error when I select "Debug As -> GWT Development mode with Jetty" in eclipse:

2017-12-27 10:13:04.813:INFO:/:qtp1139566718-80: EventServlet: ERROR: The serialization policy file '/apl/639E49884D8207D25E3A7CFF4491F8C9.gwt.rpc' was not found; did you forget to include it in this deployment?

(see the complete output below)

There are several servlets defined in the web.xml, but only for this one (EventServlet) the error is shown. I have not touched the servlets and the web.xml. I have also cleaned and rebuild the project.
How can I solve this?

Thanks
Magnus



Running CodeServer with parameters: [-noprecompile, -port, 9876, -sourceLevel, 1.8, -bindAddress, 127.0.0.1, -launcherDir, /home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT, -logLevel, INFO, -style, OBFUSCATED, msm.app.bcs.Application]
Super Dev Mode starting up
   workDir: /tmp/gwt-codeserver-4155472912936236704.tmp
2017-12-27 10:12:47.520:INFO::main: Logging initialized @12837ms
   Loading Java files in msm.app.bcs.Application.
   Ignored 1 unit with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
   Module setup completed in 16947 ms
2017-12-27 10:12:57.711:INFO:oejs.Server:main: jetty-9.2.14.v20151106
2017-12-27 10:12:57.853:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@4b8c6dbc{/,null,AVAILABLE}
2017-12-27 10:12:57.987:INFO:oejs.ServerConnector:main: Started ServerConnector@49b6177a{HTTP/1.1}{127.0.0.1:9876}
2017-12-27 10:12:57.987:INFO:oejs.Server:main: Started @23305ms

The code server is ready at http://127.0.0.1:9876/
Code server started in 17.90 s ms
2017-12-27 10:12:58.446:INFO:oejs.Server:main: jetty-9.2.14.v20151106
Starting Jetty on port 8888
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
2017-12-27 10:13:01.961:INFO:oejsh.ContextHandler:main: Started c.g.g.d.s.j.WebAppContextWithReload@2a1076b5{/,file:/home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT/,AVAILABLE}{/home/warker/dvl/prj/msm/msm-app-bcs/target/msm-app-bcs-1.0-SNAPSHOT}
2017-12-27 10:13:01.965:INFO:oejs.ServerConnector:main: Started ServerConnector@9443150{HTTP/1.1}{127.0.0.1:8888}
2017-12-27 10:13:01.968:INFO:oejs.Server:main: Started @27285ms
UpdateService: startup
2017-12-27 10:13:04.813:INFO:/:qtp1139566718-80: EventServlet: ERROR: The serialization policy file '/apl/639E49884D8207D25E3A7CFF4491F8C9.gwt.rpc' was not found; did you forget to include it in this deployment?
2017-12-27 10:13:04.814:INFO:/:qtp1139566718-80: EventServlet: WARNING: Failed to get the SerializationPolicy '639E49884D8207D25E3A7CFF4491F8C9' for module 'http://127.0.0.1:8888/apl/'; a legacy, 1.3.3 compatible, serialization policy will be used.  You may experience SerializationExceptions as a result.
[WARN] Server class 'junit.framework.AssertionFailedError' could not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/home/warker/.m2/repository/junit/junit/4.11/junit-4.11.jar' to the web app classpath for this session
DBS CONSTRUCTION

--
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, December 23, 2017

SuperDevMode OutOfMemoryError

Hi,

We have a large project with about 250 KLoC client-side code (without comment and blank lines). This project compiles in DevMode with Xmx2500m in 3mins. But in SuperDevMode it throws OutOfMemoryError.

GWT Libraries: GWT 2.8.2, gwittir, gwtchosen, gwtquery

DevMode:
Compiler Arguments: org.example.base.Base -startupUrl base -war /usr/jboss/standalone/deployments/base.war -noserver -logLevel ERROR -port 80 -nosuperDevMode -XmethodNameDisplayMode FULL -strict

VM Arguments: -Xms2000m -Xmx2500m -XX:+UseCompressedOops -Djava.io.tmpdir=${TMP}/base -Dgwt.persistentunitcachedir=${TMP}/base -Dgwt.usearchives=true -Dgwt.disableGeneratorResultCaching

SuperDevMode:
Just change -nosuperDevMode to -superDevMode in compiler arguments.

In DevMode with Xmx2500m, first compile takes about 3min, but in SuperDevMode with even Xmx4000m it throws OutOfMemoryError. By increasing Xmx to 20GB, it starts compile but never stops (it seems it needs more memory). So we can not use SuperDevMode in large projects. (Removing gwt.usearchives or gwt.disableGeneratorResultCaching has no effect.)


My questions:

1. Why SuperDevMode should takes more memory than DevMode?

2. In small projects, SuperDevMode compile time is equal or greater than DevMode compile time. Is it normal?

3. How can I reduce SuperDevMode compile time?

Regards,
Ali.

--
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, December 21, 2017

GWT - Auto logout after user inactivity

We need to auto log out the user after a max user inactivity time (say 5 mins) in our GWT MVP with history management application.  Appreciate any inputs on how to proceed implementation for this.

We have session timeout at service level. so if any interaction happens with the server, server session will be validated and inactivated if expired. But in above case, user should be auto logged out after max inactivity time without any user interaction. 

--
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.

Wednesday, December 20, 2017

Re: interact.min.js.map

The file interact.min.js provides information about a source maps file that the browser tries to load once you open browser dev tools. If it does not exist, as in your case, the browser logs a warning and you don't have source maps for debugging in browsers. It does not affect the stability of your app.

-- 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.

interact.min.js.map

Just added D&D to a GWT application using MaterialDnd addin. Now the application is looking for interact.min.js.map but it's missing. Any idea why interact.min.js.map is missing? Our project configurations is:
  1. Java 8
  2. GWT 2.7.0
  3. GMD 1.6.0
  4. GMD Material addins 1.6.0
  5. Eclipse Neon.3
When the application is launched an error message "[WARN] 404 - GET /interact.min.js.map" is thrown on the server.

This is otherwise working well application. Any idea what could be wrong?

Thanks in advance.

--
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, December 19, 2017

Re: JsInterop Array

Ok guys, so I apologize, after a few tests I realized something, as Thomas said about the js lib should't be reading the content, I went digger and realized that the problem was not on the expando properties but the name of the nodeSet array... The js looked for a "nodeSet" array and I was passing it as "nodeSets" array. Very sad (I'm not good with javascript). Thanks for all your help Vassills and Thomas.
I switched my code as Vassils as suggested and could find the bug(me) because of what Thomas said. Thanks a lot and sorry for taking your time.

Merry Christmas to all of you.

Cheers,
César Alves

terça-feira, 19 de Dezembro de 2017 às 07:18:00 UTC, cesar paulo alves escreveu:
Hello guys, so I'm getting crazy with this.

I need to inject a java array inside a javascript library.

The problem is that the Js library will iterate over an integer array, and if the element is not an integer it exits the function.
When I create the integer array and pass it to plain javascript array, for some reason it carries garbage inside, I already tried everything with no success.

So this is my java nodeset (https://pastebin.com/AdJqj80p)


I'm using the gwt-interop-utils -> https://github.com/GWTReact/gwt-interop-utils/blob/master/src/gwt/interop/utils/client/plainobjects/JsPlainObj.java


And when I inspect the javascript object in the browser you can see it has lots of garbage, and I cant clean it. See the nodes array I have (_clazz_0_g$,__elementTypeCategory$,_elementTypeId$"......).


And when I do the same with Js I don't have this garbage (obvious).



I already used the JsArray and everything, but no luck =/.


Do you have any Idea how to have a plain javascript array with jsInterop?


Thanks a lot.





--
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: JsInterop Array

Ok guys, so I apologize, after a few tests I realized something, as Vassills said about the js lib should't be reading the content, I went digger and realized that the problem was not on the expando properties but the name of the nodeSet array... The js looked for a "nodeSet" array and I was passing it as "nodeSets" array. Very sad (I'm not good with javascript). Thanks for all your help Vassills and Thomas.
I switched my code as Thomas as suggested and could find the bug(me) because of what Vassills said. Thanks a lot and sorry for taking your time.

Merry Christmas to all of you.

Cheers,
César Alves

terça-feira, 19 de Dezembro de 2017 às 07:18:00 UTC, cesar paulo alves escreveu:
Hello guys, so I'm getting crazy with this.

I need to inject a java array inside a javascript library.

The problem is that the Js library will iterate over an integer array, and if the element is not an integer it exits the function.
When I create the integer array and pass it to plain javascript array, for some reason it carries garbage inside, I already tried everything with no success.

So this is my java nodeset (https://pastebin.com/AdJqj80p)


I'm using the gwt-interop-utils -> https://github.com/GWTReact/gwt-interop-utils/blob/master/src/gwt/interop/utils/client/plainobjects/JsPlainObj.java


And when I inspect the javascript object in the browser you can see it has lots of garbage, and I cant clean it. See the nodes array I have (_clazz_0_g$,__elementTypeCategory$,_elementTypeId$"......).


And when I do the same with Js I don't have this garbage (obvious).



I already used the JsArray and everything, but no luck =/.


Do you have any Idea how to have a plain javascript array with jsInterop?


Thanks a lot.





--
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: JsInterop Array

This is not "garbage", they are "expando properties".
It shouldn't be a problem in practice for any well-coded JS lib. If your JS lib fails here, it probably means it iterates over the array using a for…in loop: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Array_iteration_and_for...in
As a workaround, you can probably copy the array into a JsArrayInteger:
JsArrayInteger arr = JavaScriptObject.createArray().cast();
for (int node : nodes) {
  arr
.push(node);
}
or using Elemental2 Core:
JsArray<Double> arr = new JsArray<>();
for (int node : nodes) {
  arr
.push(node)
}




On Tuesday, December 19, 2017 at 8:18:00 AM UTC+1, cesar paulo alves wrote:
Hello guys, so I'm getting crazy with this.

I need to inject a java array inside a javascript library.

The problem is that the Js library will iterate over an integer array, and if the element is not an integer it exits the function.
When I create the integer array and pass it to plain javascript array, for some reason it carries garbage inside, I already tried everything with no success.

So this is my java nodeset (https://pastebin.com/AdJqj80p)


I'm using the gwt-interop-utils -> https://github.com/GWTReact/gwt-interop-utils/blob/master/src/gwt/interop/utils/client/plainobjects/JsPlainObj.java


And when I inspect the javascript object in the browser you can see it has lots of garbage, and I cant clean it. See the nodes array I have (_clazz_0_g$,__elementTypeCategory$,_elementTypeId$"......).


And when I do the same with Js I don't have this garbage (obvious).



I already used the JsArray and everything, but no luck =/.


Do you have any Idea how to have a plain javascript array with jsInterop?


Thanks a lot.





--
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: JsInterop Array

I had a similar problem with DataTables requiring a String[] argument. The one generated from java had some hidden fields that DataTables choke on. I ended up creating a JsString type that casts from/to String, but at the time I didn't know or didn't exist the gwt-interop-utils.

In your case however I would suggest the following:

*** NOTE:  int and int[] are not represented in javascript *** and you may have a problem during casting in/out. I would suggest using double if/when you hit the problems. Traceback and browser's debugger is invaluable.

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class NodeSet {
  public int id;
  public int x;   <-- conside use of double
  public int y;
  public int[] nodes;
  @JsOverlay
  public static NodeSet create(int id, int x, int y, int[] nodes) {
      final NodeSet ns = new NodeSet();
      ns.id = id;
      ns.x = x;
      ns.y = y;
      ns.nodes = nodes;
      return ns;
  }
}



On Mon, Dec 18, 2017 at 8:18 PM, cesar paulo alves <caesaralves@gmail.com> wrote:
Hello guys, so I'm getting crazy with this.

I need to inject a java array inside a javascript library.

The problem is that the Js library will iterate over an integer array, and if the element is not an integer it exits the function.
When I create the integer array and pass it to plain javascript array, for some reason it carries garbage inside, I already tried everything with no success.

So this is my java nodeset (https://pastebin.com/AdJqj80p)


I'm using the gwt-interop-utils -> https://github.com/GWTReact/gwt-interop-utils/blob/master/src/gwt/interop/utils/client/plainobjects/JsPlainObj.java


And when I inspect the javascript object in the browser you can see it has lots of garbage, and I cant clean it. See the nodes array I have (_clazz_0_g$,__elementTypeCategory$,_elementTypeId$"......).


And when I do the same with Js I don't have this garbage (obvious).



I already used the JsArray and everything, but no luck =/.


Do you have any Idea how to have a plain javascript array with jsInterop?


Thanks a lot.





--
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.

Monday, December 18, 2017

JsInterop Array

Hello guys, so I'm getting crazy with this.

I need to inject a java array inside a javascript library.

The problem is that the Js library will iterate over an integer array, and if the element is not an integer it exits the function.
When I create the integer array and pass it to plain javascript array, for some reason it carries garbage inside, I already tried everything with no success.

So this is my java nodeset (https://pastebin.com/AdJqj80p)


I'm using the gwt-interop-utils -> https://github.com/GWTReact/gwt-interop-utils/blob/master/src/gwt/interop/utils/client/plainobjects/JsPlainObj.java


And when I inspect the javascript object in the browser you can see it has lots of garbage, and I cant clean it. See the nodes array I have (_clazz_0_g$,__elementTypeCategory$,_elementTypeId$"......).


And when I do the same with Js I don't have this garbage (obvious).



I already used the JsArray and everything, but no luck =/.


Do you have any Idea how to have a plain javascript array with jsInterop?


Thanks a lot.





--
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, December 14, 2017

Re: Any way to create a DialogBox-like component that DOESN'T use HTML tables?

Ok, thanks for the suggestions folks - I'll experiment!

- Tim

On Wednesday, December 13, 2017 at 1:54:28 AM UTC-8, Jens wrote:

I thought that PopupPanel also uses table for internal layout; is that not the case?

PopupPanel just takes any kind of widget and displays it as an overlay on top of your app, optionally modal and optionally with a dark glass pane. As Colin said a DialogBox adds a 9-box layout through extending DecoratedPopupPanel. The easiest workaround for you would be to copy GWT's DialogBox into your own source (possibly giving it a new name) and then change the DialogBox to directly extend PopupPanel. The 9-box layout should be gone then while still having caption support and being able to drag and move around the DialogBox. If you don't need the caption and movement of the DialogBox you could also just simply use PopupPanel directly instead of DialogBox.

-- 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: ER tool

We use Lienzo extensively over at Drools

Here's a video showing use of our Lienzo based library as a BPMN2 process designer: https://www.youtube.com/watch?v=rDqgTe-DB5E (all GWT and Lienzo).

Our Lienzo based library is also used for some other "diagramming" type of editors:

https://www.youtube.com/watch?v=qBgxVoc2qfw

https://www.youtube.com/watch?v=9wcUU4k0i9I

https://www.youtube.com/watch?v=q0hxyxJzcgI

On Thursday, 14 December 2017 12:10:18 UTC, James wrote:
I like to use GWT or Vaadin to draw ER diagram. I came cross JointJs as well as https://www.lienzo-core.com/lienzo-ks/. There is no GWT wrapper for JointJS. Lienzon seems promising to me. How do you think? 

Thanks,

James

--
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.

ER tool

I like to use GWT or Vaadin to draw ER diagram. I came cross JointJs as well as https://www.lienzo-core.com/lienzo-ks/. There is no GWT wrapper for JointJS. Lienzon seems promising to me. How do you think? 

Thanks,

James

--
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.

Wednesday, December 13, 2017

Re: Any way to create a DialogBox-like component that DOESN'T use HTML tables?


I thought that PopupPanel also uses table for internal layout; is that not the case?

PopupPanel just takes any kind of widget and displays it as an overlay on top of your app, optionally modal and optionally with a dark glass pane. As Colin said a DialogBox adds a 9-box layout through extending DecoratedPopupPanel. The easiest workaround for you would be to copy GWT's DialogBox into your own source (possibly giving it a new name) and then change the DialogBox to directly extend PopupPanel. The 9-box layout should be gone then while still having caption support and being able to drag and move around the DialogBox. If you don't need the caption and movement of the DialogBox you could also just simply use PopupPanel directly instead of DialogBox.

-- 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: Any way to create a DialogBox-like component that DOESN'T use HTML tables?

I think the easiest way is to create your own DialogBox ?

A DialogBox, in its easiest form, is just a div with a high Z-order, that is placed in the center of the screen.
And if you want a glasspane just a full-screen size div, with a black transparant background color just behind (in Z-order terms) the other div.

--
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, December 12, 2017

Re: Any way to create a DialogBox-like component that DOESN'T use HTML tables?

Hello Colin...

I don't have a problem with tables; but we're using the embedded form of CKEditor in a dialog, and there's a bug with it that, if it is embedded within a table (even way up the DOM), certain focus and key events cause it to remove itself from the DOM.

We'll be submitting a bug report to the CKEditor people, but for now we need the component to work.  We're using GWT's dialog classes for our dialog, but they use tables for layout (unless I'm sorely mistaken).

I thought that PopupPanel also uses table for internal layout; is that not the case?

Thanks for your suggestions about where to ask questions. :-)

- Tim

On Thursday, December 7, 2017 at 6:59:49 PM UTC-8, Colin Alworth wrote:
Tables should only be needed (even historically) to manage rounded corners or some other "9-box" way to build corners and edges - if you just want a flat popup with square, solid colored border, there shouldn't be a need for tables. If you only need modern browser support, you shouldn't need tables at all.

What specifically concerns you with using HTML tables? Sure, it generates a little more content and isn't very pretty if you are reading the source, but if it does the job...

What are your requirements for a dialog box?

As the javadoc indicates, DialogBox extends DecoratedPopupPanel, which is responsible for adding the 9box (for styling purposes, as mentioned above). The superclass of DecoratedPopupPanel is PopupPanel - if you only need the API that PopupPanel offers, you might do okay with just that. Beyond that, we would need a lot more clarity.

(And for future reference, gwt-contrib is good for discussion about GWT contributions, but StackOverflow, gitter.im/gwtproject/gwt or ##gwt on freenode, or this GWT Users mailing list are all better places to ask questions.)

On Tuesday, December 5, 2017 at 7:36:30 PM UTC-6, TimOnGmail wrote:
Hi all...

We're currently using a third-party component that, for some reason, doesn't play well when embedded in HTML tables.

One of the uses we have for this component is within a DialogBox.  Unfortunately, it appears DialogBox does its layout using HTML tables.

Does anyone know of an alternative component that acts similar to a DialogBox, but which doesn't uses HTML tables for layout?

- Tim

--
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, December 9, 2017

JavaDoc typo

Hi all,

In the JavaDoc sentence of JsonObject.getObject [1] , there are two consecutive commas.

Appreciate removing one of them.

Thanks,
Ahmed

[1] https://gwt.googlesource.com/gwt/+/master/elemental/src/elemental/json/JsonObject.java

--
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: Possible to use Firebase in a GWT app?

With JsInterop is pretty easy to create a minimal integration to make it work, probably the best option if you just want minimal integration. Anyway, you can get inspired by someone else code like https://github.com/spirylics/x-gwt/tree/master/x-gwt-firebase. Not sure if there is a good/complete gwt firebase API out there.

On Fri, Dec 8, 2017 at 2:54 PM Power Droid <powerdroid00@gmail.com> wrote:
Is it possible and/or does anyone know if any documentation exists regarding integrating Firebase with a GWT app?  I'm hoping to use Firebase Auth to allow a user to login to an app with a Google account and then possibly using some Firebase Analytics.

PD

--
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: Elemental2 Error

So it turns out I need to do this after hours of web surfing:

Navigator nav = DomGlobal.navigator;


hopefully, there will be more comprehensive help documents and examples coming out soon for elemental2


Joe




On Wednesday, December 6, 2017 at 9:26:43 PM UTC-5, Joe Wu wrote:
Thanks for replying. I did have 

<inherits name='elemental2.dom.Dom'/> included in the XXX.gwt.xml


Joe 


On Wednesday, December 6, 2017 at 8:36:18 PM UTC-5, Juan Pablo Gardella wrote:
Did you include elemental2.dom.Dom  module? Check at https://github.com/google/elemental2#gwt

On Wed, 6 Dec 2017 at 19:34 Joe Wu <joe....@gmail.com> wrote:
I have been using GWT for a while but I am new to elemental2, I have tried the following code to create new navigator object in GWT:

import elemental2.dom.Navigator;


and for entrypoint


private Navigator Nav = new Navigator(); 


the following are the first several lines of the error message I got during compile:

 

            [ERROR] elemental2.dom.Navigator cannot be resolved to a type

         [ERROR] Errors in 'elemental2/dom/Navigator.java'

            [ERROR] elemental2.dom.ServiceWorkerContainer cannot be resolved to a type

         [ERROR] Errors in 'elemental2/dom/BatteryManager.java'

            [ERROR] elemental2.dom.EventTarget cannot be resolved to a type


can anyone help? 


Thanks,

Joe



--
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.

Friday, December 8, 2017

Possible to use Firebase in a GWT app?

Is it possible and/or does anyone know if any documentation exists regarding integrating Firebase with a GWT app?  I'm hoping to use Firebase Auth to allow a user to login to an app with a Google account and then possibly using some Firebase Analytics.

PD

--
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: Serialization /Incompatible/ classnot found

Can you share the string that the client sent to the server for this? It looks as though either something has been done to modify the stream (preemptively read from it once it hit the client? an extra token was written to it? some other customization?) or perhaps a proxy server replaced some string with a url for some reason? There is no reason that a classname should begin with "http:" in the client code.

On Wednesday, December 6, 2017 at 12:20:48 PM UTC-6, jeslin...@gmail.com wrote:
Hi,
   i am getting the below error after i migrated from gwt 2.6.1 to gwt 2.8.1. 

am trying to pass an "LinkedHashMap<String, Object> " object thats causing the trouble. I am getting this issue only during post request. Linkedhashmap is working perfectly with get request. Any help is highly appreciated. Let me know if you need additional info to help me.

I have all the latest Jars (2.8.1) in my classpath "gwt-user, gwt-servlet " 
 
Dec 06, 2017 11:05:08 AM org.apache.catalina.core.ApplicationContext log
SEVERE: navigationService: An IncompatibleRemoteServiceException was thrown while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.ClassNotFoundException: http:
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:323)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:263)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.google.gwt.user.client.rpc.SerializationException: java.lang.ClassNotFoundException: http:
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:708)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:612)
at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119)
at com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.instantiate(Arrays.java:57)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiate(Arrays.java:66)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:106)
at com.google.gwt.user.server.rpc.core.java.util.Arrays$ArrayList_ServerCustomFieldSerializer.instantiateInstance(Arrays.java:39)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instantiate(ServerSerializationStreamReader.java:1088)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:682)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Map_ServerCustomFieldSerializerBase.deserialize(Map_ServerCustomFieldSerializerBase.java:38)
at com.google.gwt.user.server.rpc.core.java.util.LinkedHashMap_ServerCustomFieldSerializer.deserialize(LinkedHashMap_ServerCustomFieldSerializer.java:41)
at com.google.gwt.user.server.rpc.core.java.util.LinkedHashMap_ServerCustomFieldSerializer.deserializeInstance(LinkedHashMap_ServerCustomFieldSerializer.java:55)
at com.google.gwt.user.server.rpc.core.java.util.LinkedHashMap_ServerCustomFieldSerializer.deserializeInstance(LinkedHashMap_ServerCustomFieldSerializer.java:34)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.core.java.util.Collection_ServerCustomFieldSerializerBase.deserialize(Collection_ServerCustomFieldSerializerBase.java:38)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserialize(ArrayList_ServerCustomFieldSerializer.java:40)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:54)
at com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:33)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:312)
... 24 more
Caused by: java.lang.ClassNotFoundException: http:
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:634)
... 50 more

--
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.