[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: | |
| 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: |
|
||||||||
| 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 |