

Would you use JSF for your next project? - javabullets
source link: https://www.javabullets.com/is-jsf-still-relevant/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Would you use JSF for your next project?
There was an excellent stackoverflow blog post last week about the “Brutal Lifecycle of Javascript Frameworks”. The article was about the speed at which Javascript UI frameworks(angularjs, angular, jquery and react) come into and fall out of fashion. The key metric for this post is questions per month on the framework, which is a reasonable metric to demonstrate these trends. Downloads would have been interesting too.
It got me thinking where are we with JSF, and my starting point was to superimpose JSF on top of the Javascript data –

Its hard to see clearly but JSF is in decline based on questions asked on Stackoverflow. If we remove Javascript we can see the decline started around 2013

That said the level of questions is fairly small, and the level is relatively stable
This post tries to understand the current state of JSF, and whether there is still a place for JSF in modern development.
What is JSF?
JSF is a component-based web framework that is part of Java EE. It was the only frontend framework under Java EE until Java EE 8 added its new MVC framework.
Whats good about JSF?
For me the key strength of JSF lies in the component frameworks in the JSF ecosystem. In particular PrimeFaces, or the utility libraries like omnifaces. They let you quickly get started on projects, have plenty examples and are especially suited in a team or for projects where developers lack frontend skills. The deployment model is often simple, with a single war or ear file per server
The current release of JSF is 2.3, with the specification for 2.4 currently in progress.
Whats bad about JSF?
In 2014 JSF received criticism from the thoughtworks techradar, which placed it on hold.
The main part of the criticism was that the JSF model is flawed as it –
“encourages use of its own abstractions rather than fully embracing the underlying web model”
They do make the concession that the web model is getting more prominence in later versions of JSF.
There were rebuttals against this post particularly relating to more recent JSF versions. But it has contributed to JSF being regarded as a difficult framework to use.
JSF is Marmite
JSF is the marmite of frontend development.
Whats marmite? Its a yeast extract that you spread on toast. Some people love it, some hate it, but there is no middle ground. For the record I hate marmite, but I like JSF.
The reason I like JSF is that you can access good quality components, that are mature and well documented. It also has the advantage of allowing teams that are weak on front end skills to develop professional looking websites. There is a downside that it can be hard to deliver more complex requirements as the Request/Response model is more abstract under JSF.
Should you use JSF for new projects?
The JSF model has fallen out of favour. It is viewed as a legacy framework against today’s Javascript frameworks with RESTful API backend’s. This has moved the Java to implementing the RESTful microservices. This approach can often scale better than JSF.
The stackoverflow blog post shows its not all plain sailing in the frontend Javascript world. The frameworks suffer from relatively short lifespans, although there are migration strategies, you do run the risk of your javascript framework being obsolete.
JSF has the advantage of being a mature model in this respect. Its also worth remembering that if your team is lacking in front end skills then JSF will help you quickly deliver a professional looking website.
Question
I’d be interested in hearing other peoples experiences, and whether they will be using JSF on future projects
Like this:
Recommend
-
5
20 Go Packages You Can Use in Your Next ProjectImprove your application and save your time.
-
5
How to use tailwindcss with AMP in a Next.js project 2020-03-24 GeekPluxRecently, I was refactoring my blog using Next.js by a whim. There are 3 tech stacks I would use:
-
5
@ashutoshmishraAshutosh MishraI am a Web Developer and Tech Writer. I love to work and write on technology.What is Tailwind CSS exactly?
-
11
-
13
← blogShould I Use Gatsby or Next.js For My Next Project?Ben ReadSeptember 23, 2022Developers tend to get very pas...
-
9
Would You Sell Your Extra Kidney?Each year thousands die because there aren’t enough organs for transplants, and I may be one of them. It’s time to start compensating donors.
-
7
What should we use for the next side project February 08, 2023 deegha Season 1 Episode 6 dev talk with deegha ...
-
7
Artificial IntelligenceWould You Trust ChatGPT at Your Job?A survey of over 17,000 people indicates only half...
-
9
Qwerki—a groundbreaking todo and reminder app designed to revolutionize personal organization. We're on a mission to transform how people manage their lives, and we're looking for enthusiastic alpha and beta testers to join us on this...
-
6
Would You Entrust Your Savings to Elon Musk? Published Aug. 14, 2023 By Andrew Hutchi...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK