Gotta love Wim Deblauwe! Hes the best java coder i know!
@prdoyle4 ай бұрын
Timely! I just tried Spring+Thymeleaf+HTMX for the first time and I hadn't realized there was a Spring Boot HTMX package!
@roeniss3 ай бұрын
demo starts: 07:03
@TC103942 ай бұрын
Looks like spring initializer now has htmx dependency. Is that now a prefer way to include in the template file. If so, how do you specify htmx library in the template file using the Springboot's version of htmx library?
@JavierFausLlopis4 ай бұрын
Great, simple, straight to the point tutorial.
@paulfx50194 ай бұрын
Hey Josh, many thanks for the slick demo, any chance you could glue all your recent demos on Authorisation Server, Cloud Gateway Server & Resource Server (MPA web server) together with Thymeleaf & HTMX, something a bit closer to real world scenario? As Thymeleaf and HTMX start to have a few CSRF issues...Cheers
@azmo_4 ай бұрын
Thank you very much! I'm also learning thmyeleaf and htmx currently. I just have one question: Why `th.attr="hx-delete=@{...}"` instead of `th:hx-delete="@{...}"`? Isn't the second one simpler? Or is there a reason?
@roeniss3 ай бұрын
seems no obvious reason
@prdoyle4 ай бұрын
I've just been combining Thymeleaf and HTMX just by adding an attribute like th:hx-delete, rather than th:attribute. Seems to work.
@WimDeblauwe4 ай бұрын
That works indeed. When you use htmx-spring-boot library, you can also use `hx:delete`.
@valdemarjuniorr2 ай бұрын
Does anyone make it works using Native Images?
@hamednikbakht97084 ай бұрын
hi. how use REST API with HTMX response JSON not use model or view
@FINALLYQQQQAVAILABLE2 ай бұрын
HTMX is does not operate on JSON APIs. The server should return HTML. A proper REST API in the original sense should be hypertext-driven anyway. When using HTMX you should use HTML as the hypertext format.
@PlasmaSnake3694 ай бұрын
If you're using htmx why not use something simpler than thymeleaf like mustache?
@martindzeble4 ай бұрын
First to comment, Nice to hear you mentioned thymeleaf
@AsifAgaria4 ай бұрын
which IDE you use
@melveryshop98524 ай бұрын
Intellij Idea, new UI
@maverickv35174 ай бұрын
How would you deploy such an app? I tried Spring Boot and HTMX for a little side gig but JVM start up time ~7 seconds is just not viable. I tried Spring Native but I ran into some weird issues.
@hba60184 ай бұрын
Quarkus + HTMX = ❤
@TheExcentro4 ай бұрын
Thanks a lot!
@kamalhm-dev4 ай бұрын
skip the ai generated thumbnail it’s off putting
@ChrisB_Crisps4 ай бұрын
I like it, take a look at the playlist thumbnails
@muslehhaj41642 ай бұрын
is HTMX new ?? I mean i tried to find a couse in udemy that talks about Spring boot + HTMX but I couldn't find !! ... it seems cool add-on thymeleaf but not sure if good choice to do real projects !
@dmitrik46104 ай бұрын
how to add csrf to request?
@terteseamos5794 ай бұрын
Please @Josh can you do a video on how Spring boot handle multiple request at the same time
@sadiulhakim78144 ай бұрын
what is your first favorite place on internet?
@zhilindeng4 ай бұрын
JavaScript is a programming language, while HTMX is more of a structural DSL. The goal of any structural DSL is to simplify the complexity that comes with using a full-fledged programming language. But there's a catch: they can't cover every possible scenario. So, in the end, if you want to handle everything, you still need to learn a programming language. Take SQL as another example. It's a structural DSL that makes querying data from a database easier. But we soon realize that not every situation can be solved with just a single SQL statement. That's why databases have built-in stored procedures to handle more complex logic. Of course, developers also have the option to implement that logic in other programming languages instead of using stored procedures.
@FINALLYQQQQAVAILABLE2 ай бұрын
Yes. HTMX works with practically any programming language and libraries which enable writing server side applications. And you can add more Javascript to the frontend should you wish to do so.