Monday, September 28, 2020

Re: Why Don’t You Use Java for Programming the Client-Side Web Apps on Web Browser?

Hi Lofi,

I once used GWT + Electron + Materialize running with Jetty. That worked, but after getting rid of GWT the code was much cleaner. 

Class com.sun.net.httpserver.HttpServer is more than enough for running a Java server with REST interface on the desktop. 

Another advantage of moving away from GWT is that I don't need to work with JSInterop and things that require annotations in the Java code. Creating a REST servlet in plain Java is quite straightforward.

Regards,
Rodolfo



On Mon, Sep 28, 2020 at 12:46 PM lofid...@gmail.com <lofidewanto@gmail.com> wrote:
Hi Rodolfo,

thanks a lot for the feedbacks!

TypeScript is not bad. After all it's coming from Anders Helsjberg creator of Turbo Pascal, Delphi, VisualJ++, C#. He is a great language designer... 😉

But actually you could use GWT to build an Electron app as you don't need to have a Java server for the transpiled code... or did you have something extra?
@Frankhossfeld told me that he has done Electron app with GWT, very easy 😉 Maybe he could elaborate here...

I never use GXT but I've used GWTBootstrap3 (Open-Source) and actually it was very easy to use, quite the same with using the integrated GWT widgets. Today Dmitrii has migrated GWTBootstrap3 to Elemental2 (https://github.com/treblereel/gwtbootstrap3). And the cool thing is that for the app devs, it doesn't change anything. You could use the same components and nothing has changed, only deep in the framework itself it uses Elemental2 instead the older technology... Maybe @Dmitrii could elaborate this...  

Thanks,
Lofi



rmr...@gmail.com schrieb am Montag, 28. September 2020 um 12:36:03 UTC+2:
Hello Lofi,

Java + GWT + GXT + Eclipse was my main toolkit for over a decade. When Sencha went crazy with the price of license renewals, I started looking for alternatives.

Today my toolkit has changed to Java for backend/server side, TypeScript for client side and Visual Studio Code for code development. Communication between Java server and TypeScript UI is handled via REST interface.

Now I'm free to choose any UI style I like, my code has simplified a lot and there is a clearer separation between server and client code. There are no license costs and I don't have to deal with GWT and GXT, except for an old project I still have to maintain.

The switch to JavaScript/TypeScript gave me a huge advantage: now I can use ElectronJS to create cross-platform desktop apps that are actually web apps running on a local Java server.

I don't regret moving away from GWT + GXT. Actually, I'm quite happy with the refreshed coding experience.

Regards,
Rodolfo M. Raya


On Thu, Sep 24, 2020 at 4:02 PM lofid...@gmail.com <lofid...@gmail.com> wrote:
I would like to know, what are the obstacles for you as Java developers not using Java as programming language for writing Web browser apps. Web browser apps are client-side and not server-side Web apps. 
I would like to know from you... Java developers...

Thanks, Lofi


--
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-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/b099f262-5a83-4a1e-83d8-5cc6ef336e53n%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/8dc3253a-a818-49b1-8e63-65492fb39d90n%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/CALr%2Bh%2BuUnJWjceH9YSDU3VfwJA9smmF6B7ZdgGEjKEGQW%3DVuUQ%40mail.gmail.com.

No comments:

Post a Comment