Option Dialogs
Option dialogs provides a way for the app to communicate with users and gather their input. These dialogs are modal, meaning they block app execution until the user interacts with them, ensuring important messages are addressed before proceeding.
Option dialogs in webforJ are similar to the JOptionPane in Swing, solving a fundamental problem of handling blocking dialogs in web applications.
When using option dialogs to create modal dialogs in webforJ, the dialog blocks user input to other parts of the app and processes events solely for the modal dialog. This ensures the dialog remains responsive while preventing interactions with other parts, enhancing the user experience and maintaining app flow. The server stops processing any further requests until the dialog is dismissed or a value is returned from it.
Topics
📄️ Confirm
Show a blocking ConfirmDialog with up to three options, configurable button sets, message types, and timeout behavior.
📄️ File Chooser
Open a blocking FileChooserDialog to let users pick files or directories from the server, with selection modes and initial paths.
📄️ File Save
Prompt users for a save location with the FileSaveDialog, configuring initial path, default filename, and overwrite behavior.
📄️ File Upload
Capture client uploads with the FileUploadDialog, returning an UploadedFile that you can filter, move, and process server-side.
📄️ Input Dialog
Prompt users for text, numbers, dates, colors, or other typed values with the modal InputDialog and message-type styling.
📄️ Message
Show a blocking MessageDialog with an OK button, configurable message types, alignment, blur, and timeout.