coldbox-flash-messaging

Combine ColdBox Flash RAM with cbMessageBox for styled POST-REDIRECT-GET notifications.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill coldbox-flash-messaging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coldbox-flash-messaging
Source: https://github.com/ColdBox/skills/tree/main/coldbox/flash-messaging
Command: npx skills add https://github.com/ColdBox/skills --skill coldbox-flash-messaging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ColdBox apps often struggle to provide reliable user feedback across redirects. This skill demonstrates how to use Flash RAM along with cbMessageBox to deliver consistent, styled notifications in POST-REDIRECT-GET flows.

Core Features & Use Cases

  • Flash RAM storage enables persisting messages across redirects and restoring form state after validation.
  • cbMessageBox integration provides consistent UI for success, error, warning, and info messages.
  • PRG pattern guidance and practical examples for real-world ColdBox apps.

Quick Start

Implement a PRG workflow that displays a cbMessageBox notification after a successful redirect.

Frequently Asked Questions about coldbox-flash-messaging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display flash messages after a redirect in ColdBox?

To display flash messages after a redirect in ColdBox, you use Flash RAM to persist data across requests and cbMessageBox to render styled notifications. This combination ensures user feedback survives the POST-REDIRECT-GET workflow without losing state.

What is the POST-REDIRECT-GET pattern for form validation in ColdBox?

The POST-REDIRECT-GET pattern in ColdBox separates form submission from display by redirecting after a POST. Flash messaging preserves validation errors and form state across this redirect, allowing the GET request to render feedback cleanly without resubmission prompts.

Can I use cbMessageBox to render success and error notifications across handlers?

Yes, cbMessageBox integrates with Flash RAM to render consistent success, error, warning, and info notifications across different handlers and layouts. It manages the flash data lifecycle and outputs styled messages through module configuration and view templates.

What's the best way to persist form state after a failed validation redirect?

Persisting form state after a failed validation redirect is best handled by storing data in Flash RAM. This temporary storage carries the submitted values and validation messages across the redirect, allowing the GET request to repopulate fields and display errors.

Why does my ColdBox flash message disappear before rendering?

Flash messages disappear before rendering when the Flash RAM lifecycle is not configured correctly for the redirect flow. Properly mapping the flash data persistence within the POST-REDIRECT-GET workflow ensures the message survives the redirect and displays on the subsequent GET request.