Menu

1 / 2

Build an Interactive Task Manager with HTMX and Java

DEV Community: java·Markus·about 19 hours ago
#B9l0gj7y
#devtojava#devto#dev#bundle#insert
Reading 0:00
15s threshold

You already have Java endpoints, input validation, and HTML templates. Now you want inline editing and live search without maintaining a separate application in the browser.

HTMX lets an HTML element send an HTTP request and replace a selected part of the page with the returned HTML. Quarkus handles the routes and persistence; Qute renders the page and fragments. Web Bundler brings the frontend dependency into the Maven build.

We will build a small task manager with create, edit, delete, search, and validation. It uses a few inline JavaScript event handlers for error feedback, while keeping application state and rendering on the server. You do not need a separate Node.js build for this example.

Start with the project

The source project pins Java 21, Quarkus 3.30.4, Web Bundler 2.0.4, and HTMX 2.0.8. Start there for the versioned baseline.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.