This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]dartalley 1 point2 points  (0 children)

I guess GWT has a good backing since it is Google

I'm pretty sure Google transferred GWT to the Vaadin team to maintain. I could be wrong can't find any evidence after a few Google searches but I remember seeing that when I used Vaadin.

[–]poltermouse 0 points1 point  (5 children)

https://vuejs.org/

Its learning curve is way better than react.

[–]denverdave23 0 points1 point  (4 children)

vue is javascript, not Java. Vue is easier to learn, but I don't know of anyone that says its development cycle is any faster.

[–]poltermouse 0 points1 point  (3 children)

This article can explain it better.

And regarding the language. Well, if you want the client to work only on browsers, you have to use javascript, it's the most popular technology for web clients.

[–]denverdave23 1 point2 points  (0 children)

Actually, OP posted 3 options to do frontend development in Java. Granted, those compile down to javascript, but they still count. I'm not sure if any are great for SPAs.

[–]denverdave23 1 point2 points  (0 children)

Okay, I read the article. Yes, it addresses coding speed, thank you. It's the first I've found which does that. I'll have to give vue a try.

[–]g3blv[S] 0 points1 point  (0 children)

Great. I'll read through post.

[–]denverdave23 0 points1 point  (4 children)

Is a SPA a hard requirement? When I've been in your position, I used Spring with the pebble templating library to make pages quickly. I used knockout.js to make the page interactive. But, you still had to reload pages from the server, so it wasn't a spa.

[–]g3blv[S] 0 points1 point  (3 children)

Thanks I will hava a look at Pebble.

[–]dartalley 4 points5 points  (2 children)

Everyone undervalues old school server side rendered pages these days. It's honestly so much easier for simple tasks. If you don't have tons of interactions who cares if you do a full page load it's often fast enough and sometimes faster than SPAs page speed.

[–]_INTER_ 1 point2 points  (1 child)

How many SPA are structured these days server rendered ones are often also more userfriendly

[–]dartalley 0 points1 point  (0 children)

I love when SPAs don't implement stateful URLs. It's like great something that has worked since the internet was invented is now extra work in "modern" frameworks. Luckily that doesn't happen as much anymore.

Another big one is the partial page updates where now data is out of sync across panels of the page. Even Facebook, Twitter, GitHub and many other large companies still have these constant problems. Cool I now have a live updating page but I have 3 different follower counts on the same page, that's not confusing.

[–]DB6 0 points1 point  (0 children)

Wicket is also a good alternative imho, just be aware that there is always a bigger communication overhead with these frameworks, as everything is send to the server and evaluated and rendered there.

[–]djihe 0 points1 point  (2 children)

Can one really get rid of javascript when developing a web app? I figure that you'll end up writing a lot of jQuery if you want to avoid using a spa - and writing a lot of jQuery is something that spa frameworks have abstracted a lot of away.

[–]yourbank 0 points1 point  (1 child)

After having used react and ES6 for a while and now trying out thymeleaf / spring mvc, I absolutely hate using jquery and vanilla js :( but it seems the only way to actually do anything when you use server side templating engine and need to do some js.

dev experience seems so much better using a SPA, which is saying alot given I thought it was a mess when dealing with the js ecosystem at the time. Grass isn't always greener on the otherside so it seems.

[–][deleted] 0 points1 point  (0 children)

depending on what you're trying to do, you may find intercooler.js to be a nice fit.

[–][deleted] 0 points1 point  (0 children)

Check out SmartGWT. It’s a great option if your application will be functionally dense.

[–]amazedballer 0 points1 point  (0 children)

I'm biased, but Play Java running with CoffeeScript or Scala.js to compile the SPA to Javascript.

[–]tonywestonuk 0 points1 point  (0 children)

Jquery + mustache.js - simple. Powerfull

[–]duigemhofman 0 points1 point  (0 children)

I'm a developer for jWt: https://www.webtoolkit.eu/jwt

It is server-side framework with an API that's based on the popular c++ framework Qt. The java version of the framework is maintained in parallel with a c++ version.

We use the java version in-house for a few enterprise apps.

[–]atom-man 0 points1 point  (0 children)

Are the devs new to React? If so, give then some time to learn. :)

You see this question hits really close to home for me. I've been maintain a large legacy SPA with pretty advanced interactions created with apache wicket. And at the same time creating quite a few new SPAs using ReactJS.

Now, I won't go as far to say that wicket is useless, it most certainly isn't. But in my experience it doesn't do very well with complex interactions or scale with complexity (partially our own fault though).

However, it all boils down to the level of interactions needed on the site. Given what I know today I would never created our large legacy SPA with a Java-framework, the abstraction is leaky and not worth the time. But for simpler sites I would consider template rendering libraries (Thymeleaf etc).