Advanced Topics
๐๏ธ Error Handling
Register custom ErrorHandler implementations through the Java Service Provider Interface to respond to specific exceptions in webforJ apps.
๐๏ธ Lifecycle Listeners
Hook into webforJ app startup and shutdown phases with AppLifecycleListener to initialize services, modify config, or clean up resources.
๐๏ธ Locale Management
Configure the app locale, auto-detect from the browser, and react to runtime language switches through the LocaleObserver interface.
๐๏ธ Translation
Resolve localized strings from resource bundles or custom sources with the t() method, MessageFormat placeholders, and browser locale detection.
๐๏ธ Browser Console
Log messages from Java to the browser console with typed levels and styled output using the BrowserConsole utility.
๐๏ธ MaskDecorator
Format and parse strings, numbers, dates, and times outside input fields using the same mask syntax as webforJ masked fields.
๐๏ธ Interval
Schedule recurring events at a fixed delay using the Interval class to refresh data, rotate content, or detect inactivity efficiently.
๐๏ธ Debouncing
Delay actions until activity settles using the Debouncer class for search-as-you-type, autosave, and other rate-limited UI work.
๐๏ธ Terminate and Error Actions
Customize app shutdown and error behavior with AppCloseAction implementations like MessageAction, RedirectAction, and NoneAction.
๐๏ธ Browser History
Navigate, push, and replace browser history entries from Java to control back, forward, and URL state without page reloads.
๐๏ธ Web Storage
Persist client-side data through CookieStorage, SessionStorage, and LocalStorage to retain preferences and state across requests and reloads.
๐๏ธ Namespaces
Share thread-safe key-value state across sessions, thread groups, or the entire JVM using Private, Group, and Global namespaces.
๐๏ธ View Transitions
Animate DOM changes with the browser View Transition API, applying fade, slide, zoom, and shared morph effects between component states.
๐๏ธ Object and String Tables
Store shared Java objects and string values app-wide or per HTTP session with ObjectTable, SessionObjectTable, and StringTable.
๐๏ธ Repository
3 items
๐๏ธ Asynchronous Updates
Run background work off the UI thread and push updates back to webforJ components safely with Environment.runLater and PendingResult.
๐๏ธ Route Registry Provider
Override default route scanning with a custom SPI provider to integrate Spring, CDI, OSGi, or GraalVM classloaders with webforJ routing.