r/java • u/AgilNaoEhTI • May 07 '24
Are you still using JSF for frontend?
I’m curious about what you guys use as tech stack for creating frontends. Java offers alternatives such as JSF but it has a lot of problems (ex: http session) so I was thinking if is something better in the Java world or if you use another tech, based on javascript, for example. I also see a lot of java courses that cover JSF, but I question if this subject is still relevant or might be misleading for begginers.
15
Upvotes
View all comments
Show parent comment
2
u/davidalayachew May 09 '24
Yes.
Long story short, JavaFX is excellent, has great tools out of the box, and is extremely performant while maintaining integrity, but it sacrifices the freedom that Swing gave you to do it. The work that I am doing nowadays really depends on having that freedom of customization, so Swing has been a better fit for me.
But, when I need to dip into JavaFX to do something, JavaFX plays beautifully with Swing (and vice versa!), so I don't feel the need to pick one or the other. I actually find myself using both sometimes. Nowadays, especially.
If you would like me to expand on these points (in excruciating detail!), see my comment below.