[MAGNOLIA-3281] MgnlMailFactory should work with Map<String, Object> Created: 22/Aug/10  Updated: 03/Dec/10  Resolved: 02/Nov/10

Status: Closed
Project: Magnolia
Component/s: mail
Affects Version/s: 4.3.6
Fix Version/s: 4.4

Type: Improvement Priority: Major
Reporter: Jan Christian Haddorp Assignee: Tobias Mattsson
Resolution: Fixed Votes: 0
Labels: freemarker, mail, templates
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-3028 Introduce generics in mail module Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Currently the MgnlMailFactory works on a String/String Map for templating. However Freemarker and Velocity support support more complex objects as well. The restriction on String is a hard limitation.

So, I would recommend to change the parameter definition from Map<String, String> params to Map<String, Object> params.



 Comments   
Comment by Philipp Bärfuss [ 01/Sep/10 ]

I agree

Comment by Jan Haderka [ 02/Nov/10 ]

Fixed as part of the changes for multi-form feature - see MAGNOLIA-3028 for code changes.

Generated at Mon Feb 12 03:44:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.