Help to create Freemarker Based Component
Hi,
I am new to TeamSite Development, just started creating the component by using XSLT. I header that the Teamsite is supporting Freemarker Template also.
Can anyone help me how to create simple freemarker template.
I have a Helloworld.java using org.dom4j.Document i have set two values name & message, then finally i returned the doc.
In the Component using XSLT Template
I retrieved all the nodes and returned it on Page. like below, How can we change this to freemarker template?
Content XML Field:
I am new to TeamSite Development, just started creating the component by using XSLT. I header that the Teamsite is supporting Freemarker Template also.
Can anyone help me how to create simple freemarker template.
I have a Helloworld.java using org.dom4j.Document i have set two values name & message, then finally i returned the doc.
In the Component using XSLT Template
I retrieved all the nodes and returned it on Page. like below, How can we change this to freemarker template?
Appearances Field:
<xsl:template match="/">
<xsl:template match="/">
<div>
<p><b>name is: <xsl:value-of select="/Properties/Data/Result/person/name"/></b></p>
<p><b>Hobby</b>: <xsl:value-of select="/Properties/Data/Result/person/message"/></p>
</div>
</xsl:template>
Content XML Field:
<Data>
<External>
<Object Scope="local">com.mycomponents.HelloWorld</Object>
<Method>sayHello</Method>
</External>
</Data>
Thanks
Jay
Thanks
Jay
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.