-
Notifications
You must be signed in to change notification settings - Fork 148
Preview in Message Templates #4892
Copy link
Copy link
Open
Description
In JMIX v1, the EmailTemplates addon provided a very useful feature:
It was possible to send a preview Email to a selected user, to perform a rendering test. Errors were shown immediately, if the parameters were used in a wrong way.
In JMIX v2, the new MessageTemplates addon replaced EmailTemplates, but this validation feature is missing. There is currently no UI way to simply attempt to render the message template and see whether FreeMarker throws an exception or if required parameters are missing.
This makes testing and validating templates much harder, especially when templates depend on dynamic entity parameters.
Requested Feature
Please add the ability—directly in the Message Templates UI—to:
- Render the selected MessageTemplate in the UI.
- Choose one or more selected entities as context data (similar to v1 behavior).
- If the template renders successfully → show the rendered result.
- If the template fails (missing params, FreeMarker errors, invalid expressions) → show the error message.
Why this is needed
- Rendering validation is critical for template correctness.
- Freemarker template errors can only be detected at runtime.
- v1 allowed validating templates directly in the UI, improving feedback loops.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
June 2026 release 3.0