Web Components for Java Developers
summary
Shows how to build a reusable animated avatar from scratch in vanilla JavaScript, using custom elements to define the tag, shadow DOM to encapsulate styles, and slots for extension; wires that component into a Spring Boot/Flow app via an import and setAttribute calls so Java code instantiates UI without hand-editing HTML; demos Vaadin component library (including a date picker and a grid), notes ~600 free icons and Apache‑2.0 licensing, recommends LitElement for larger work, and mentions bundlers (Parcel/webpack) for packaging.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 4:34Preparing the project
- 13:23Adding a custom element
- 15:53Custom elements
- 23:06Shadow root
- 29:10Web Components
- 36:55Getting Started
- 38:40Spring Initializer
- 43:15Testing
- 46:25Questions
related talks
47mModern web with Web Components and Java
49mWeb Components for Java Developers
52mModern Web Development with Java and Vaadin - From Fundamentals to Pro
44mJava developer-friendly frontends: Build UIs without the JavaScript hassle
27m"Full-stack from the back: Building for the web with Java"
49mThree Different Methods to Build Web UIs in Java
37mUsing WebComponents with Java on the Server Side to harden the stack
44mFull-stack web apps, 100% Java
