Forum Discussion
nathan
11 years agoExecutive
Haven't come across this issue before, but my guess would be that component parameters only accept certain data types. You could probably get around the issue by wrapping the values in a basic hashmap object.
Have you tried something like this?
<@component id="Message" message=starter customParams={"numReplies": numReplies, "showSubject": true} />
<#attempt>
<#assign showSubject = (env.context.component.getParameter('customParams').showSubject) />
<#recover>
<#assign showSubject = true />
</#attempt>
<#attempt>
<#assign numReplies = env.context.component.getParameter('customParams').numReplies />
<#recover>
<#assign numReplies = 0 />
</#attempt>
Related Content
- 4 years agoInactive User