Building UI
Archetypes
4 items
Understanding Components
Understand the webforJ component hierarchy, composition over inheritance, lifecycle stages, and concern interfaces before building custom components.
Using Components
Configure webforJ components in Java by setting text, attributes, IDs, inline styles, and CSS classes that drive appearance and behavior.
Composing Components
Combine webforJ components into reusable units by extending Composite, configuring the bound component, and overriding initBoundComponent.
Elements
Integrate raw HTML tags and custom web components in webforJ using the Element class to add children, set content, and call JavaScript functions.
Element Composite
Wrap a custom HTML element or third-party web component in Java with ElementComposite, exposing its properties, attributes, and events through the Java API.
Events
Listen for component events, read the event payload, configure element events, and dispatch your own custom events with the EventDispatcher.
Execute JavaScript
Run client-side JavaScript from Java with executeJs, executeJsAsync, and executeJsVoidAsync at the app or element level.