RE: RE: [coldbox:8326] Retain data, set next event and show errors

These can quite possibly be dismissed as a mater of preference, but two things come to mind:

  1. Look into the “persist” and “persistStruct” arguments to the setNextEvent() method to do it all in one fell swoop.

  2. event.getValue() allows you to specify a default value as the second argument which can clean up your structKeyExists lines.



I suggest flash ram. Flash ram also have methods to persist the objects longer than 1 request or make it where you manage the life span of it. I suggest digging in the API for the arguments to use.

Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform:
Linked In:
IECFUG Manager:

Thanks for the suggestions guys… this is looking cleaner!


  • I will save a new category or update an existing one