Skip to content

tschuehly/htmx-spring-workshop

Repository files navigation

Building server-side web applications with htmx

Workshop Spring I/O 2024

Setup

Lab 1: Server-side rendering with Spring Boot and JTE

This lab aims to build a simple UserManagement Application with stock Spring Boot + JTE and htmx.

Lab 2: Introducing Spring ViewComponent

The goal of this lab is to refactor the application to use Spring ViewComponent and htmx-spring-boot to delegate rendering responsibility to the ViewComponents and remove it from the Controller

Lab 3: Inline Editing.

In this lab, we will create a group Management Page where we can add a user to a group and a navigation bar

Lab 4: Using Spring Beans to Compose the UI

In this short lab, we will use the dependency injection capabilities of Spring to show a navigation bar where we can add new items by just creating new Components

Lab 5: Lazy Loading

In this lab, we will lazily load the user table as it now contains a lot of users

Lab 6: Full Text Search

In this lab, we will enable our users to search the user table.

Lab 7: Infinite Scrolling using Pageable

In this lab, we will only load new users when we are scrolling down, improving our initial page speed

Lab 8: Exception Messages

In this lab, we will catch Exception using a Spring Controller Advice and show them to the user in a nice form

Lab 9: Server-Sent Events

We will leverage the SSE capabilities of htmx to update our table live with the newest Users that are created.

About

Building server-side web applications with htmx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published