Monday, March 30, 2020

[ANN] Sting v0.13 (Beta) release

Sting is a fast, easy to use, compile-time dependency injection toolkit.
If you are familiar with Dagger, it is a replacement for Dagger that is
more optimized for the web context and GWT/J2CL.

We have been developing Sting for a while as we were not satisfied with
existing solutions but we have recently reached a point where we have
replaced all of our existing dependency injection solutions (GIN,
Dagger2 and some home-grown variants) with Sting and we think it is
ready for other people to give it a try. So we are looking for feedback
from anyone who is interested in giving it a try.

We have set up a documentation site at

  https://sting-ioc.github.io/docs/overview.html

But to get a feel for what the code looks like. A component is
defined by adding the @Injectable annotation to the class such as:

  @Injectable
  class MyFancyService { ... }

However, we also support a @Named annotation and @Typed annotation
that is similar in practice to the same-named annotations in CDI
applications that add a qualifier to a component or control the types
with which a component is published. We also support an @Eager
annotation to ensure a component is instantiated when the injector is
constructed.

We also have the equivalent of daggers modules in the form of
fragments where you can programmatically create components by writing
code such as GWT.create(MyBackendServiceAsync.class)

So why choose Sting over something like Dagger? We did write up a
comparison at

  https://sting-ioc.github.io/docs/dagger.html

However, it is a little blunt and I will probably soften the points in
it a little (it was written for an internal audience initially).
The main reason to adopt Sting is that it is easier to use and it
produces smaller, faster and easier to optimize code.

Anyhoo, if anyone is looking for a dependency injection framework,
here is another to try and we would really appreciate the feedback.

Thanks,

Peter Donald

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

Wednesday, March 25, 2020

Re: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom

Try using jdk, jre directly 1.8. Some of my issues disapeared after I switch from java13 to java8.


On Monday, March 23, 2020 at 2:05:43 PM UTC-3, Ashi Dev wrote:
Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: 
 instance = {}
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:696) ~[gwt-servlet.jar:na]

Using GWT 2.8.2, Java 11, compliance level 1.8,  gson.jar version 2.8.6  On linux.

However, on windows same set up works with gson jar 2.2.2 but not with 2.8.6.

Can you help?

This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1442 768445 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW.  Rave Technologies (India) Pvt Limited, registered in India under number U31900MH1998PTC117068 with a registered address of PLOT CS 445, 3 rd Floor, A-wing Madhu Corporate Park Ltd, Pandurang Budhkar Marg, Mumbai -400013

--
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/953c8c85-7ff7-40c0-b359-cece3b36b232%40googlegroups.com.

Monday, March 23, 2020

Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: 
 instance = {}
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:696) ~[gwt-servlet.jar:na]

Using GWT 2.8.2, Java 11, compliance level 1.8,  gson.jar version 2.8.6  On linux.

However, on windows same set up works with gson jar 2.2.2 but not with 2.8.6.

Can you help?

This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1442 768445 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW.  Rave Technologies (India) Pvt Limited, registered in India under number U31900MH1998PTC117068 with a registered address of PLOT CS 445, 3 rd Floor, A-wing Madhu Corporate Park Ltd, Pandurang Budhkar Marg, Mumbai -400013

--
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/08de8dc5-f69b-4e46-94b2-6a1f4ebe9739%40googlegroups.com.

Tuesday, March 17, 2020

Re: GWT 2.8.2 and IntelliJ IDEA

I use IntelliJ Ultimate and use the bundled Jetty integration plugin of IntelliJ. This is not the Jetty Runner plugin you are using. The bundled Jetty integration plugin lets you start a local Jetty just fine via a run configuration and lets you configure *.war or exploded war files to deploy. The run configuration as a "before launch" action that actually builds the war file using Gradle.

In your case it sounds like you have gwt-dev.jar on classpath and that Jetty Runner plugin uses the same classpath. Thus it can happen that jetty 9.2 from gwt-dev.jar might get started.

As an alternative (if you only have IntelliJ Community Edition) you could just download jetty and start it locally on your dev machine without any IntelliJ involved. Then use IntelliJ or whatever to produce a war file into the jetty/webapps folder. You could also create a symlink or use a script to copy your compile output into that webapps folder.


-- 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/f8c60f86-6cda-4389-b528-131f324af44f%40googlegroups.com.

Monday, March 16, 2020

Re: GWT 2.8.2 and IntelliJ IDEA

Hello,

I use IntelliJ although I must admit I start the application on the command-line as opposed to using IntelliJ to do this.

I have found the command

mvn -Djetty.version=9.4.19.v20190610 war:exploded gwt:devmode

work well for me.

To debug server-side code, in the GWT Maven plugin in pom.xml, I use:

      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.0-rc-10</version>
        ...
        <configuration>
          ...
          <jvmArgs>
            <arg>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8425</arg>
          </jvmArgs>
          ...
        </configuration>
      </plugin>

And then connect to that port using IntelliJ's debugger.

I hope that helps!

On Monday, 16 March 2020 12:07:54 UTC+1, Mark Fekete wrote:
HI all,

I wonder if anyone is using Intellij and GWT 2.8.2. I 've literally found nothing about this topic.


My problem is that whenever i want to start and debug my application, it fails because the buildin Jetty-server runs with the wrong version 9.2 instead of 9.4.

The solution is to use a run configuration with a dedicated Jetty server. This is possible  with the "Jetty Runner"-IntelliJ-Plugin which uses Jetty version 9.4. 
Unfortunately, when I run this configuration in the context of my GWT 2.8.2 project, for some reasons the wrong jetty version is started: 9.2 which is located somewher in gwt-dev-xxx.jar

Any idea how to fix this? Or I'm forced to switch to Eclipse?

--
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/042d91e3-a127-4148-b2de-372227c366b4%40googlegroups.com.

GWT 2.8.2 and IntelliJ IDEA

HI all,

I wonder if anyone is using Intellij and GWT 2.8.2. I 've literally found nothing about this topic.


My problem is that whenever i want to start and debug my application, it fails because the buildin Jetty-server runs with the wrong version 9.2 instead of 9.4.

The solution is to use a run configuration with a dedicated Jetty server. This is possible  with the "Jetty Runner"-IntelliJ-Plugin which uses Jetty version 9.4. 
Unfortunately, when I run this configuration in the context of my GWT 2.8.2 project, for some reasons the wrong jetty version is started: 9.2 which is located somewher in gwt-dev-xxx.jar

Any idea how to fix this? Or I'm forced to switch to Eclipse?

--
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/f635c420-ea0d-4f3f-8346-f80809ba1a63%40googlegroups.com.

Thursday, March 12, 2020

Re: gwt-serviceworker-linker

Nice one Peter. I'm scheduled to look at this in a few weeks. We use the app cache in anger and it has worked well all these years. I'll use your hard work :)

For anyone who is unaware chrome are removing app cache functionality at release M82 due mid April.

Cheers

On Thu, 12 Mar 2020 at 05:23, Peter Donald <peter@realityforge.org> wrote:
Hi,

With the pending removal of Appcache from the major browsers, I have deprecated the Appcache libraries I maintained and put together an extremely minimal service-worker linker for GWT that did something roughly similar to Appcache if anyone needs it. 

It is available at:

--
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/CACiKNc41vcRwZVG8AZKZx46znR26UVYV8mvRy9CNBB4hguTvzQ%40mail.gmail.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/CABia8q6mg%2B6ynDpuuYuyQhsmz9RgiLcd4v7zzxL7q6jguwGNiQ%40mail.gmail.com.

Wednesday, March 11, 2020

gwt-serviceworker-linker

Hi,

With the pending removal of Appcache from the major browsers, I have deprecated the Appcache libraries I maintained and put together an extremely minimal service-worker linker for GWT that did something roughly similar to Appcache if anyone needs it. 

It is available at:

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

Re: What do you need to know? For C++ programmer

Me too

I use to developer by GWT.
GWT is useful in client side and server side both.
Because to use java in both.
Java is object oriented programming .
Java have full useful librally.

--
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/f83702da-97c0-4bff-a0f8-d96750d32431%40googlegroups.com.

Re: What do you need to know? For C++ programmer

Jan,  YES, GWT is still alive.  E.g., see midasmed.com, our new medical diagnosis app, beta test version. The UI is entirely GWT, and it uses responsive design to run on any device.
Dan Jones,
Eureka Clinical Computing

On Mon, Mar 9, 2020 at 7:04 AM Jan Istocko <istocko@gmail.com> wrote:
Smartgwt12p with get 2.8.2

Dňa pi 8. 3. 2019, 10:46 Puppy2Pet <southbayusainternational@gmail.com> napísal(a):
Just wonder is there still anybody use GWT for web apps thesedays?

----------------------------------------------------------------------------
Puppy2Pet



On Sunday, October 28, 2007 at 8:39:51 PM UTC-7, squishydonut wrote:
I have a background in C++ programming, but only very basic knowledge
of Java programming.  Could someone list a # of things that one should
know to start utilizing GWT for web apps?

Java?  JSP?  JSF?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAPKohkDSWHknz%3Dy1P%2B%2Bnz1Dsos%2BLxP1BvMNO%3D9mTG5D7pucm1Q%40mail.gmail.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/CABTxsENebQCFJnRCcCA3hans8TaBn2nhxDgT_WNUJ5eEdh_pdQ%40mail.gmail.com.

Monday, March 9, 2020

Re: GWT DataGrid getRowElement throwing IndexOutOfBoundsException after manually setting the page

Hi Thomas,

Thanks very much for your response.  I had considered that, but had been convinced by the various logging messages I had (including the grid pager reporting the current rows) that the request to fetch the requisite rows had happened.

However, on further review (and adding the most important but previously overlooked log statement to the data row request RESPONSE processing :-/ ) it was clear that you are indeed correct and the rows had not yet been retrieved.

Thanks for again for your response and nudging me back down that path.

- Linus 

On Thursday, March 5, 2020 at 2:07:48 AM UTC-8, Thomas Broyer wrote:
It's probably a timing issue: all (most) changes to an AbstractCellTable are actually deferred to the end of the event loop (through Scheduler.scheduleFinally), so you have to defer the second part of your code (the one that calls getVisibleRange and getRowElement).
Did you try to step-by-step debug your code? (through the browser's debugger, or simply GWT.log() statements)

On Wednesday, March 4, 2020 at 6:29:40 PM UTC+1, Linus Kamb wrote:
I have a DataGrid, and I would like to display a row that is not in the currently visible row set, however, I get an indexOutOfBound Exception when I call getRowElement().

In my code, I determine in which page of results the desired row exists and I set the appropriate page with

  gridPager.setPage(showPage);

I then try to get the RowElement using the following, where showRow is the actual row index in the dataset.

  Range range = dataGrid.getVisibleRange();
 
int start = range.getStart();
 
int rowIdx = showRow - start;
 
TableRowElement row = dataGrid.getRowElement(rowIdx);

But that throws the indexOutOfBounds Exception.

I have also tried using the actual row index with the same result.

The page is properly set and displays the page of results that includes the desired row, but I am unable to get the RowElement in order to scroll the display.

Note that if the user has already manually paged to the page that includes the desired row, and as such the setPage() operation is not performed, I can successfully get the RowElement with this  method and scroll the view.

Runtime logging would indicate that the appropriate rows have been fetched.

Any insights into what I am missing or doing wrong would be most appreciated.

Thanks,
- Linus

--
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/96381391-6426-45c8-9530-c776001d42c1%40googlegroups.com.

Sunday, March 8, 2020

Re: What do you need to know? For C++ programmer

Smartgwt12p with get 2.8.2

Dňa pi 8. 3. 2019, 10:46 Puppy2Pet <southbayusainternational@gmail.com> napísal(a):
Just wonder is there still anybody use GWT for web apps thesedays?

----------------------------------------------------------------------------
Puppy2Pet



On Sunday, October 28, 2007 at 8:39:51 PM UTC-7, squishydonut wrote:
I have a background in C++ programming, but only very basic knowledge
of Java programming.  Could someone list a # of things that one should
know to start utilizing GWT for web apps?

Java?  JSP?  JSF?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/CAPKohkDSWHknz%3Dy1P%2B%2Bnz1Dsos%2BLxP1BvMNO%3D9mTG5D7pucm1Q%40mail.gmail.com.

Thursday, March 5, 2020

Re: GWT DataGrid getRowElement throwing IndexOutOfBoundsException after manually setting the page

It's probably a timing issue: all (most) changes to an AbstractCellTable are actually deferred to the end of the event loop (through Scheduler.scheduleFinally), so you have to defer the second part of your code (the one that calls getVisibleRange and getRowElement).
Did you try to step-by-step debug your code? (through the browser's debugger, or simply GWT.log() statements)

On Wednesday, March 4, 2020 at 6:29:40 PM UTC+1, Linus Kamb wrote:
I have a DataGrid, and I would like to display a row that is not in the currently visible row set, however, I get an indexOutOfBound Exception when I call getRowElement().

In my code, I determine in which page of results the desired row exists and I set the appropriate page with

  gridPager.setPage(showPage);

I then try to get the RowElement using the following, where showRow is the actual row index in the dataset.

  Range range = dataGrid.getVisibleRange();
 
int start = range.getStart();
 
int rowIdx = showRow - start;
 
TableRowElement row = dataGrid.getRowElement(rowIdx);

But that throws the indexOutOfBounds Exception.

I have also tried using the actual row index with the same result.

The page is properly set and displays the page of results that includes the desired row, but I am unable to get the RowElement in order to scroll the display.

Note that if the user has already manually paged to the page that includes the desired row, and as such the setPage() operation is not performed, I can successfully get the RowElement with this  method and scroll the view.

Runtime logging would indicate that the appropriate rows have been fetched.

Any insights into what I am missing or doing wrong would be most appreciated.

Thanks,
- Linus

--
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/5cf0da83-3043-4de7-b0a4-e44b9f3f5386%40googlegroups.com.

Wednesday, March 4, 2020

GWT DataGrid getRowElement throwing IndexOutOfBoundsException after manually setting the page

I have a DataGrid, and I would like to display a row that is not in the currently visible row set, however, I get an indexOutOfBound Exception when I call getRowElement().

In my code, I determine in which page of results the desired row exists and I set the appropriate page with

  gridPager.setPage(showPage);

I then try to get the RowElement using the following, where showRow is the actual row index in the dataset.

  Range range = dataGrid.getVisibleRange();
 
int start = range.getStart();
 
int rowIdx = showRow - start;
 
TableRowElement row = dataGrid.getRowElement(rowIdx);

But that throws the indexOutOfBounds Exception.

I have also tried using the actual row index with the same result.

The page is properly set and displays the page of results that includes the desired row, but I am unable to get the RowElement in order to scroll the display.

Note that if the user has already manually paged to the page that includes the desired row, and as such the setPage() operation is not performed, I can successfully get the RowElement with this  method and scroll the view.

Runtime logging would indicate that the appropriate rows have been fetched.

Any insights into what I am missing or doing wrong would be most appreciated.

Thanks,
- Linus

--
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/95a0c8e4-c5c1-447e-b2e2-604c9dd4ff96%40googlegroups.com.