Thymeleaf

Thymeleaf

Application and Data / Languages & Frameworks / Java Tools
Needs advice
on
PrimeFacesPrimeFaces
and
ThymeleafThymeleaf

Hello, I need to create a website using Java frameworks, the website must pull data from different mssql views , I'm thinking of using Spring Boot+PrimeFaces but someone suggested I should use Thymeleaf instead of primefaces, I don't have any experience in either, so I'm wondering if someone has some advice based on their own experience? thanks!

READ MORE
4 upvotes·26.2K views
Replies (1)
Recommends
on
PrimeFaces

PrimeFaces is best combined with Jakarta EE. You could use for instance GlassFish or WildFly.

PrimeFaces uses Faces, and Faces uses CDI, which are both available by default in Jakarta EE. It's possible, but not super natural or trivial to add these to Spring Boot.

READ MORE
1 upvote·1 comment·5K views
Kevin Nabity
Kevin Nabity
·
September 17th 2022 at 7:17PM

I'd advise against using PrimeFaces for new development. JSF seems to be on its way out the door and the fact that so much logic that belongs on the front-end gets forced to the server with PrimeFaces has been a big obstacle for me in development with PrimeFaces. Angular/React/VueJS all seem like better alternatives.

·
Reply

I need some advice to choose an engine for generation web pages from the Spring Boot app. Which technology is the best solution today? 1) JSP + JSTL 2) Apache FreeMarker 3) Thymeleaf Or you can suggest even other perspective tools. I am using Spring Boot, Spring Web, Spring Data, Spring Security, PostgreSQL, Apache Tomcat in my project. I have already tried to generate pages using jsp, jstl, and it went well. However, I had huge problems via carrying already created static pages, to jsp format, because of syntax. Thanks.

READ MORE
4 upvotes·1.5M views
Replies (1)
Fullstack developer ·
Recommends
on
Thymeleaf

Thymeleaf is the way to go. Compared to JSP it is more elegant and less cumbersome. Plus you can render your Thymeleaf templates statically in the browser and it will look good even without a web server. With Spring Boot, Thymeleaf is the recommended way and works out of the box without any additional configuration.

READ MORE
6 upvotes·1 comment·3.4K views
Ivo Raisr
Ivo Raisr
·
March 1st 2024 at 8:07AM

It depends on the requirements for the web pages. For server-side rendered web pages, Thymeleaf is the recommended approach. For web pages requiring dynamic page updates without full page reloads, client-side framework (such as React, Angular or Vue) is the better choice.

·
Reply
Needs advice
on
MagentoMagento
and
Reaction CommerceReaction Commerce

I am consulting for a company that wants to move its current CubeCart e-commerce site to another PHP based platform like PrestaShop or Magento. I was interested in alternatives that utilize Node.js as the primary platform. I currently don't know PHP, but I have done full stack dev with Java, Spring, Thymeleaf, etc.. I am just unsure that learning a set of technologies not commonly used makes sense. For example, in PrestaShop, I would need to work with JavaScript better and learn PHP, Twig, and Bootstrap. It seems more cumbersome than a Node JS system, where the language syntax stays the same for the full stack. I am looking for thoughts and advice on the relevance of PHP skillset into the future AND whether the Node based e-commerce open source options can compete with Magento or Prestashop.

READ MORE
12 upvotes·720.9K views
Replies (2)
Web Application Developer at Fortinet·
Recommends
on
Magento
in

Where im confused is why you think PHP isn't commonly used. It powers the grand majority of the internet, and as a language designed entirely around making websites (as opposed to general purpose languages like Java that have crammed in an http server to make it work for websites too), its a language that's incredibly easy to jump into, and offers a lot of flexibility and versatility on how to navigate web facing challenges.

Also don't kid yourself about the node "one language" ecosystem. You will find yourself often visually confused as you jump between editor tabs which .js is aimed at the browser, and which .js is aimed at the server, and gets even weirder when using js based templating engines. (This is why in my node projects with a front-end, I use Angular, which uses TypeScript),). JS was never intended to run outside of a browser based VM context, its just yet another language we've jimmyrigged an http compatible socket listener into and given filesystem access.

If you're worried about wasting your time jumping into bed with PHP, don't be. Its not only extremely widely used, but after 20 years its still incredibly relevant, high performing (you will be shocked to see how fast php7 actually is), high paying (yes, six figures), and the language itself has evolved leaps and bounds into a multi-paradigm beast of a toolkit bespoke to solving web challenges.

If you liked Spring, check out Symfony sometime. Its a PHP7 web framework that takes a LOT of inspiration from Spring, and pairs up with Doctrine, a PHP7 ORM that takes a great deal of inspiration from Hibernate. The company that makes Symfony, is also the same people behind Twig, which is so ridiculously good and popular, its been ported to pretty much every language including Java and node.

As for free packaged out of the box storefronts, Magento is a total beast of a package, and isn't for the feint of heart. But it is also THE most complete and ridiculously configurable self hostable e-commerce system you'll ever come across. Many web professionals have made entire careers completely around Magento. I am not one of them, but I have used Magento, PrestaShop, and several others, and I keep coming back to Magento. Outside of hosted shops like Shopify, Magento is, as far as I'm concerned, where you wanna be for a totally custom, plug-in based shop front for a website. The only time I'd recommend different, is if a customers website is powered by WordPress, then WooCommerce is where you wanna be.

READ MORE
8 upvotes·25.5K views
Technical Lead at DPO International·

I prefer to use Magneto because it open source and has a lot of extensions in it so it's so faster for building a website

READ MORE
2 upvotes·8.2K views