What problem does it solve?
Many ColdBox applications need a reliable, consistent way to show one-time flash notifications across redirects and views; cbmessagebox centralizes message setting, checking, rendering, and clearing so notifications behave predictably in layouts and forms.
Core Features & Use Cases
- Typed flash messages: set info, success, warning, and error messages from handlers and services.
- Layout-friendly rendering: render all messages once in a main layout or render specific types near forms.
- Programmatic control: check for messages, clear specific types or all messages, and customize output templates for frameworks like Bootstrap.
- Use Case: after a successful save, set a success message and relocate so the layout displays a dismissible Bootstrap alert.
Quick Start
Set a success flash message and redirect so the main layout can render it as a Bootstrap-compatible alert.