Bruno Busco wrote:
Bruno, I cannot see an easy way to set the variables in context, but
there is still a way to do it. Please see inline
I mean, I have this:
FTL file
<#list portalPagePortlets as portlet>
...
<#if (portlet.editFormName?has_content &&
portlet.editFormLocation?has_content)>
${setRequestAttribute("editFormName", editFormName)}
${screens.render("component://common/widget/PortalPageScreens.xml",
"EditPortlet")}
</#if>
...
</#list>
and in the PortalPageScreens.xml file:
<screen name="EditPortlet">
<actions>
<set field="editFormName" value="${groovy: return
request.getAttribute('editFormName');}"/>
</actions>
<widgets>
<include-form name="${editFormName}"
location="${portlet.editFormLocation}"/>
</widgets>
</section>
</screen>
The fields portlet.editFormName and portlet.editFormLocation have no
value in the screen. How can I make the FTL file set a field in the
context?
Thank you,
Bruno