← ClaudeAtlas

coldbox-flash-messaginglisted

Use this skill when implementing flash RAM messaging in ColdBox, using cbMessageBox for styled notifications, building POST-REDIRECT-GET patterns, persisting messages across redirects, showing success/error/warning/info alerts, or integrating flash with form validation.
ColdBox/skills · ★ 0 · API & Backend · score 61
Install: claude install-skill ColdBox/skills
# Flash Messaging ## When to Use This Skill Use this skill when implementing flash messages in ColdBox for the POST-REDIRECT-GET pattern and user feedback notifications. ## Language Mode Reference Examples use **BoxLang (`.bx`)** syntax by default. Adapt for your target language: | Concept | BoxLang (`.bx`) | CFML (`.cfc`) | |---------|-----------------|---------------| | Class declaration | `class [extends="..."] {` | `component [extends="..."] {` | | DI annotation | `@inject` above `property name="svc";` | `property name="svc" inject="svc";` | | View templates | `.bxm` suffix | `.cfm` / `.cfml` suffix | | Tag prefix | `<bx:if>`, `<bx:output>`, `<bx:set>` | `<cfif>`, `<cfoutput>`, `<cfset>` | > **CFML Compat Mode**: With BoxLang + CFML Compat module, `.bx` and `.cfc` files coexist freely. BoxLang-native classes use `class {}` (`.bx` files); CFML-compat classes use `component {}` (`.cfc` files). ## Core Concepts ColdBox provides two complementary approaches: - **Flash RAM** — built-in storage for any data across one redirect (session/cookie-based) - **cbMessageBox** — a dedicated module for styled notification messages (info/success/warning/error) ## Flash RAM Basics ```boxlang // Store data before redirect function store( event, rc, prc ) { var result = userService.create( rc ) if( result.hasErrors() ){ flash.put( "errors", result.getErrors() ) flash.put( "formData", rc ) relocate( "users.create" ) return } flash.pu