Skip to main content

~/webforj/blog $ ls --latest --page=3 → 197 posts rss

AI form filling in Java: Spring AI structured output

· 11 min read
Hyyan Abo Fakher
Lead Software Architect

cover image

To fill a form with AI in Java, let the user paste free text or upload a file, ask Spring AI for a typed bean with ChatClient and .entity(...), and load that bean into a webforJ form with BindingContext.read. The same Jakarta validation rules that guard manual entry then run on what the model produced, and the user reviews and edits the fields before anything is saved.

This post builds that flow end to end in a webforJ view. The model proposes values, webforJ validates them, and the person stays in control. The complete app, SmartForm, is on GitHub and runs with your own Gemini API key.

Spring AI RAG web UI: chat with your documents in Java

· 11 min read
Hyyan Abo Fakher
Lead Software Architect

cover image

The fastest way to build a Spring AI RAG web UI is to write the whole thing in Java with webforJ. The Upload component takes the files, Spring AI reads, splits and embeds them into a VectorStore, a RetrievalAugmentationAdvisor on a ChatClient grounds every answer in the retrieved chunks, and a MarkdownViewer renders the streamed answer. There is no REST layer, no JavaScript and no separate frontend project.

This guide builds a chat-with-your-documents app that way. It is two classes: a Spring service that owns the knowledge base and a webforJ view that talks to it. The complete app, AskDocs, is on GitHub and runs with your own Gemini API key.

AI coding in Java: quality control for generated code

· 8 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

An AI assistant can write a Java view in seconds. The slow part comes after: reading the diff, wondering whether that method really exists, and clicking through the screen to see if it behaves. If every change needs that, the speed is gone.

AI coding in Java stays fast when the checks are automatic. webforJ gives you three: a source of truth the assistant reads before it writes, a workflow it has to follow, and tests that fail when it guesses wrong. The tests run in plain JUnit, with no browser, so quality control takes seconds.

Summarize PDFs with AI in Java using Spring AI and webforJ

· 9 min read
Matthew Hawkins
Software Developer

cover image

You can summarize PDFs with AI in Java by letting the user upload the file in a webforJ view, extracting the text with Spring AI's Tika reader, and sending that text to a chat model. The summary runs on a background thread, so the page stays responsive while the model works. You will build the whole process in three Java files, with no REST controller and no JavaScript. The complete app, Summarize, is on GitHub and runs with your own Gemini API key.

What's new in version 26.03?

· 11 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

webforJ 26.03 is live! The headline is the automation layer, which lets an AI agent use a webforJ app the way a person does: it reads the page, finds what it needs, and acts, with exactly the permissions of the user it works for. The same layer powers TestBed, new browserless testing built for the way AI coding assistants work. Alongside them, craftforJ picks up component deletion and system-wide undo and redo, BBjShip brings webforJ deployment to BBjServices for BBj developers, an updated DWC Design Kit brings Design System 2.0 to Figma, and important security fixes make this an upgrade we recommend for every app. See the highlights below, and as always, the GitHub release overview has the complete picture.

Build an AI agent in Java that uses your web app like a user

· 10 min read
Hyyan Abo Fakher
Lead Software Architect

cover image

To build an AI agent in Java that does real work in a web app, give it tools that use the app the way a person does. With Spring AI running the model and webforJ's automation layer as the tools, the agent reads the screen as text, finds a field by its label, types into it, picks from a list, and saves the form. The user watches every step happen in their own browser, and the agent can do nothing the user couldn't.

This is a different thing from a chatbot that answers questions, or from retrieval over your documents. The agent takes a goal such as "ship every pending order for Acme" and works through it in several steps, on the same screens the user works on. This post walks through how such an agent is put together in a Spring Boot app with webforJ.

AI Java web framework: how webforJ is built for AI work

· 10 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

webforJ, the full-stack Java framework, is the AI Java web framework that covers both sides of the work. While you build, AI coding assistants get the real webforJ API through a plugin, an agent inside your running app writes Java that compiles before you see it, and browserless tests give every change a fast pass or fail. In the app you ship, AI hosts can open your views with MCP Apps, agents can use your UI with exactly the user's permissions, and your own AI features stream into Java components.

All of it is Java, checked by the compiler, and rendered from the server. That is what makes AI output in a webforJ app easy to verify.

Java UI testing without a browser: the webforJ TestBed guide

· 11 min read
Hyyan Abo Fakher
Lead Software Architect

cover image

You can test a Java web UI without a browser by using the webforJ TestBed. It runs a view inside a plain JUnit test. It needs no browser and no server. The test finds components, types, and clicks the way a user does, and asserts on what the page shows, all from Java.

That makes UI tests as fast as unit tests, and it answers the usual question about browserless UI tests in Java: how do you unit test a web UI without starting a stack? This guide covers setup, finding components, acting on them, assertions, snapshots, dialogs, routes, and Spring Boot.

Vibe Coding a Java Web App Without Losing Control

· 7 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

Your developers already describe screens to an AI assistant and judge what comes back. The first version appears fast. Whether it can ship is a separate question, and it is the one that matters when a team starts vibe coding a Java web app the business will depend on.

Left alone, the approach fails in known ways. The assistant guesses at an API, a change breaks a screen nobody touched, or nobody can say what the code does. We built webforJ, the full-stack Java framework for business web apps, so the speed comes with control: the whole app is Java, the assistant reads the real API, and every change gets checked.

Spring Boot Live Reload UI: See Java Changes in Your Browser

· 8 min read
Matthew Hawkins
Software Developer

cover image

You change a label in your Java view, switch to the browser, and then wait. Stop the app, start it again, reload the page, click back to the screen you were on. Repeat that all day and a lot of development time quietly goes into waiting.

A Spring Boot live reload UI setup removes those steps. You save, the app picks up the change, and the browser refreshes on its own. In this post you'll turn it on for a webforJ app, see how each kind of change reaches the page, and look at the tools around it for CSS and for editing properties while the app runs.

When to Use webforJ: A Fit Guide for Business Web Apps

· 8 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

You have a project in front of you and one question: is this the kind of app webforJ was made for? Most framework pages answer with a feature list. A fit guide answers with a yes or a no for your project, and that is what this post does.

When to use webforJ comes down to one sentence. webforJ is the full-stack Java framework for business web apps: you build the whole app, screens included, in Java. If your project is an ERP, a CRM, an internal tool, an admin portal, a data entry system, a dashboard or a desktop app moving to the web, it fits. The sections below give the reason for each one, and one section names the projects it does not fit.

Is webforJ production ready? What's behind the name

· 6 min read
webforJ
Do it all in Java. The full-stack Java framework for business web apps.

cover image

You are about to pick a UI framework for an app that has to run for ten years, and the name webforJ is one you only heard recently. Asking "is webforJ production ready" is the right question. Here are the published facts. webforJ, the full-stack Java framework, is a Java API built by BASIS International, on top of BBj and the Dynamic Web Client (DWC), shipped through Maven Central with regular numbered releases and Spring Boot integration.