<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace Community Blog</title>
    <link>http://www.jivesoftware.com/jivespace/blogs/jivespace</link>
    <description>Jivespace Developer Community Blog</description>
    <pubDate>Wed, 25 Jun 2008 13:39:33 GMT</pubDate>
    <generator>Clearspace 2.5.5 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-06-25T13:39:33Z</dc:date>
    <item>
      <title>Customization Part 2: Upgrading Themes and FTL files</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/06/26/customization-part-2-upgrading-themes-and-ftl-files</link>
      <description>&lt;!-- [DocumentBodyStart:4ff26f67-85f3-4ee6-a01c-38ec6299e907] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;This post is the second in a series of blog posts about customizing for Clearspace 2.x. The first post covered general information about &lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/community/blogs/clearspace/2008/06/24/customizations-in-clearspace-2x-part-one/"&gt;Customizations in Clearspace 2.x&lt;/a&gt;. This post continues the series with more information about upgrading themes and FreeMarker template (FTL) files.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Each new version of Clearspace includes changes to FTL files and version 2 is no exception. Typically these changes are needed to support new or enhanced features. The FTL changelog included with a Clearspace release provides a list of the FTL files that were changed from the previous version. However, changes in version 2 have pretty much touched every template. In most cases these changes require a simple search-and-replace to fix. But some changes are more substantial.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The information on upgrading themes suggests an incremental process for making your changes that could save you some aggravation.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The following list suggests the tips and best practices for upgrading your templates.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;When you've overridden existing Clearspace templates (as in a theme), start with new version 2 FTL files that correspond to the version 1 files in your theme. Then, working from your customized version of the version 1 template, transfer your changes to to the version 2 template. Updating the new templates might help you avoid accidentally transferring code from version 1 that no longer works on version 2. This is especially important given that FreeMarker errors are difficult to debug; errors don't show up until run time. Weaving your version 1 changes into the version 2 templates will make the process more systematic.As you copy your changes into the version 2 template, keep in mind the changed items described below. &lt;br/&gt; &lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;The version 1 pages whose templates were community.ftl and main.ftl -- community pages and the home page -- can be easily customized with widgets in version 2. Before you set out to upgrade these pages, take a look at how much of your customization work could be accomplished by using widgets on the version 2 templates. Using widgets might reduce the amount of customization you need to do and greatly reduce any work in future upgrades.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;If you've overridden community.ftl and want to upgrade it, note that the template has been split into multiple FTL files. This was done to divide logically what was a very large template.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Replace WebWork directives with their Struts counterparts. Clearspace version 2 replaces WebWork conventions with Struts. This is pretty much just search-and-replace work to replace @ww. (for WebWork) with @s (for Struts) . The following example shows how to update the url directive. Notice that the updated code also omits the includeParams='none' attribute; in Struts 2, which Clearspace version 2 uses, none is the default value for includeParams.Version 1 (supporting WebWork): &lt;br/&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[CodeBlockStart:76d32ce8-baa3-46f9-a281-6be5b08077a4]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;style type="text/css" media="screen"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @import "&amp;lt;@ww.url value='/styles/jive-blog.css' includeParams='none'/&amp;gt;";
&amp;lt;/style&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:76d32ce8-baa3-46f9-a281-6be5b08077a4]--&gt;&lt;p&gt;&lt;br/&gt; Version 2 (supporting Struts): &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:a39c8038-5b3a-4bb8-87c1-80d7a6924e27]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;style type="text/css" media="screen"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @import "&amp;lt;@s.url value='/styles/jive-blog.css'/&amp;gt;";
&amp;lt;/style&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:a39c8038-5b3a-4bb8-87c1-80d7a6924e27]--&gt;&lt;p&gt;&lt;br/&gt; &lt;/p&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Update calls to APIs that have been consolidated and simplified. Pay attention to the places in a template where code calls methods directly (although, as a best practice, you should avoid calling methods in FTL code and use actions instead). Here's an example in which you'd replace a call to a JiveGlobals methods with a call to JiveResourceResolver:Version 1 (using JiveGlobals ): &lt;br/&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[CodeBlockStart:2af1b9b0-0f35-4d22-925b-d089d6bc37b0]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;@ww.text name="doc.viewer.more_recent_ver.text"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@ww.param&amp;gt;&amp;lt;a href="&amp;gt;&amp;lt;/a&amp;gt;"&amp;gt;&amp;lt;/@ww.param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@ww.param&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/@ww.param&amp;gt;
&amp;lt;/@ww.text&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:2af1b9b0-0f35-4d22-925b-d089d6bc37b0]--&gt;&lt;p&gt;&lt;br/&gt; Version 2 (using JiveResourceResolver ): &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:7cbd6d51-a9a6-4e2c-932a-a837b61a32f7]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;@s.text name="doc.viewer.more_recent_ver.text"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@s.param&amp;gt;&amp;lt;a href="&amp;gt;&amp;lt;/a&amp;gt;"&amp;gt;&amp;lt;/@s.param&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@s.param&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/@s.param&amp;gt;
&amp;lt;/@s.text&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:7cbd6d51-a9a6-4e2c-932a-a837b61a32f7]--&gt;&lt;p&gt;&lt;br/&gt; Here's another example where the change was from another class and method, but again to JiveResourceResolver: &lt;br/&gt; Version 1 (using CommunityUtils ): &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:5dc43388-d147-4177-9893-5da8350e8237]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;a href="&amp;gt;&amp;lt;/a&amp;gt;?view=documents" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; class="jive-link-more"&amp;gt;&amp;lt;@ww.text name="doc.main.brdcrmb.documents.link" /&amp;gt;&amp;lt;/a&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:5dc43388-d147-4177-9893-5da8350e8237]--&gt;&lt;p&gt;&lt;br/&gt; Version 2 (using JiveResourceResolver ): &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:87db8b30-c3a4-4c7f-9157-567cc5e7dd8e]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;a href="&amp;gt;&amp;lt;/a&amp;gt;?view=documents" 
&amp;nbsp;&amp;nbsp;&amp;nbsp; class="jive-link-more"&amp;gt;&amp;lt;@s.text name="doc.main.brdcrmb.documents.link" /&amp;gt;&amp;lt;/a&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:87db8b30-c3a4-4c7f-9157-567cc5e7dd8e]--&gt;&lt;p&gt;&lt;br/&gt; &lt;/p&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Update community references to container references. One twist on the API changes means that both projects and communities (also known as "spaces") are represented conceptually as containers. In the version 2 API, the Community and Project interfaces both inherit from JiveContainer. To disambiguate between the projects and communities, you'll need to pass a container &lt;em&gt;type&lt;/em&gt; with your action calls. The actual disambiguation is handled by Clearspace, however, when it intercepts the call before passing it to the action. The net effect is that the action itself receives only the container ID parameter, not the container type. Here's an FTL example:Version 1 (specifying a community by passing its community ID) &lt;br/&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[CodeBlockStart:7bb5b350-7634-4b7d-8f23-5961b2be66c7]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;@ww.action name="community-breadcrumb" executeResult="true" ignoreContextParams="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@ww.param name="communityID" value="${community.ID?c}" /&amp;gt;
&amp;lt;/@ww.action&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:7bb5b350-7634-4b7d-8f23-5961b2be66c7]--&gt;&lt;p&gt;&lt;br/&gt; Version 2 (specifying a community by passing both its type and its ID) &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:63cfc476-05fe-4d40-8059-ab478574bca4]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;@s.action name="community-breadcrumb" executeResult="true" ignoreContextParams="true"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@s.param name="containerType" value="${container.objectType?c}" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;@s.param name="container" value="${container.ID?c}" /&amp;gt;
&amp;lt;/@s.action&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:63cfc476-05fe-4d40-8059-ab478574bca4]--&gt;&lt;p&gt;&lt;br/&gt; &lt;/p&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Update code that handles content. This includes code that gets content for display as wiki markup, HTML, and so on. Among the API changes were several designed to streamline and add structure to how you handle content. For example, in version 1, to get content as wiki markup you would have called methods of the message or document or comment itself. In version 2, you pass the content object to a method inherited from JiveActionSupport. These methods include renderToText, renderToHtml, renderSubjectToHtml, and so on. Here's an example using convertToWikiSyntax:Version 1 (using content object method) &lt;br/&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;!--[CodeBlockStart:67a8bd1d-8753-4991-9675-4c8d5e135897]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;textarea id="comment-body-edit-${comment.ID?c}" name="body" rows="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp; style="width:100%;font-family:verdana,arial,helvetica,sans-serif;font-size:8pt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp; class="jive-comment-textarea"&amp;gt;${comment.unfilteredBody!?html}&amp;lt;/textarea&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:67a8bd1d-8753-4991-9675-4c8d5e135897]--&gt;&lt;p&gt;&lt;br/&gt; Version 2 (using JiveActionSupport method) &lt;br/&gt; &lt;/p&gt;&lt;!--[CodeBlockStart:1d078bff-3f0e-4615-88fa-8d773e77097c]--&gt;&lt;pre class="jive-pre"&gt;&lt;code class="jive-code"&gt;&amp;lt;textarea id="comment-body-edit-${comment.ID?c}" name="body" rows="10"
&amp;nbsp;&amp;nbsp;&amp;nbsp; style="width:100%;font-family:verdana,arial,helvetica,sans-serif;font-size:8pt;"
&amp;nbsp;&amp;nbsp;&amp;nbsp; class="jive-comment-textarea"&amp;gt;${action.convertToWikiSyntax(comment)!?html}&amp;lt;/textarea&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;!--[CodeBlockEnd:1d078bff-3f0e-4615-88fa-8d773e77097c]--&gt;&lt;p&gt;&lt;br/&gt; &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h3&gt;&lt;span&gt;Removed and Renamed FTL Files&lt;/span&gt;&lt;/h3&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;&lt;p&gt;Version 1 FTL File&lt;/p&gt;&lt;/th&gt;&lt;th&gt;&lt;p&gt;Version 2 Change&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;community-document-picker.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Renamed to container-document-picker.ftl&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;community-thread-picker.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Renamed to container-thread-picker.ftl&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;import-callback-communitynntp.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Removed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;import-directory-error.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Removed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;import-directory-updatetags.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Removed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;import-directory.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Removed.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;datepicker.ftl&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;Renamed to datetimepicker.ftl&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;h2&gt;&lt;span&gt;Upgrading Themes&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;Nearly all of your work upgrading themes will focus on upgrading FreeMarker template (FTL) files. The way you build and deploy themes is unchanged from version 1.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;But wait -- there's more.&lt;/strong&gt; Having said that, the best practice recommendation in version 2 is to use widget-customized pages wherever possible as an alternative to custom FTLs. You can use widgets in more places than in version 1; check out the section on upgrading widgets for more.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here's why you should use widgets:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;You can do with widgets much of what you'd do with custom FTL markup. In addition, you can write logic in Java behind the your widget UI.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Building widgets to support new features is a good deal tidier than adding new FTL files. While custom FTL files override default FTL files, widgets are encapsulated by the plugin deployment model -- essentially sandboxed.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;When it's time to upgrade Clearspace, the work needed to upgrade FTL files you've customized would likely be a good deal greater than what's needed to upgrade a widget.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h3&gt;&lt;span&gt;Suggested Upgrade Process&lt;/span&gt;&lt;/h3&gt;&lt;p&gt;Use the following steps as a systematic way to upgrade your themes.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Consider which custom FTLs in your themes can be replaced by customizing the page with widgets.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Use jive.devMode Jive property for debugging. By default, Clearspace hides FreeMarker errors in themes. With dev mode on, you'll see them.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Disable themes while upgrading them.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ol"&gt;&lt;p&gt;Enable your custom FTL files one at a time. Debugging incrementally will make the process smoother.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The information above along with more details can be found in the &lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/community/docs/DOC-2060/"&gt;Upgrading Extensions to 2.0 documentation&lt;/a&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4ff26f67-85f3-4ee6-a01c-38ec6299e907] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">templates</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">2.0</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">templates</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">freemarker</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">ftl</category>
      <pubDate>Fri, 27 Jun 2008 03:37:27 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/06/26/customization-part-2-upgrading-themes-and-ftl-files</guid>
      <dc:date>2008-06-27T03:37:27Z</dc:date>
      <clearspace:dateToText>6 months, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/customization-part-2-upgrading-themes-and-ftl-files</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1543</wfw:commentRss>
    </item>
    <item>
      <title>Theming in Clearspace 2.0</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/05/12/theming-in-clearspace-20</link>
      <description>&lt;!-- [DocumentBodyStart:3e58a3e4-4594-49df-9edb-2a155077ba30] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;As you know, we changed a few things in our underlying architecture for Clearspace 2.0, including some changes in the Freemarker templates as a result of moving from Webwork to Struts along with some other changes. In this video, Matt Walker, Professional Services Engineer at Jive Software, talks about the process of upgrading existing themes along with plenty of best practices to make your themes more easily upgradeable in the future.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Matt also did an earlier screencast as an &lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/community/blogs/podcasts/2008/01/17/introduction-to-skinning-clearspace"&gt;Introduction to Skinning Clearspace&lt;/a&gt;, which you might also want to watch along with this video.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;object data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-ThemingClearspace178.flv&amp;amp;source=" height="294" type="application/x-shockwave-flash" width="400" wmode="transparent"&gt;&lt;param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-ThemingClearspace178.flv&amp;amp;source="/&gt;&lt;/object&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can also download the &lt;a class="jive-link-external-small" href="http://blip.tv/file/get/Samjive-ThemingClearspace178.mov"&gt;Quicktime version&lt;/a&gt; (Caution: file is ~200MB), or you can &lt;a class="jive-link-external-small" href="http://blip.tv/file/893313"&gt;watch a larger version&lt;/a&gt; online, which will improve readability of embedded screenshots (recommended). &lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The entire presentation is also attached below as a PDF file.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3e58a3e4-4594-49df-9edb-2a155077ba30] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jivespace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">struts</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">customization</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jivespace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jive_software</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">video</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">struts</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">freemarker</category>
      <pubDate>Mon, 12 May 2008 16:58:01 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/05/12/theming-in-clearspace-20</guid>
      <dc:date>2008-05-12T16:58:01Z</dc:date>
      <clearspace:dateToText>8 months, 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/theming-in-clearspace-20</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1523</wfw:commentRss>
    </item>
    <item>
      <title>Creating Dynamic Template Content in Clearspace</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/02/08/creating-dynamic-template-content-in-clearspace</link>
      <description>&lt;!-- [DocumentBodyStart:58b00a23-141a-41ae-a8d7-0c53c63e0add] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Jive's Rick Palmer, Professional Services Engineer, takes about 5 minutes to explain how to insert dynamic content into your Clearspace FreeMarker templates. The slide below provides more details.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;object data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-CreatingDynamicTemplateContentInClearspace945.flv&amp;amp;source=" height="294" type="application/x-shockwave-flash" width="400" wmode="transparent"&gt;&lt;param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-CreatingDynamicTemplateContentInClearspace945.flv&amp;amp;source="/&gt;&lt;/object&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Or you can &lt;a class="jive-link-external-small" href="http://blip.tv/file/get/Samjive-CreatingDynamicTemplateContentInClearspace945.mov"&gt;download the Quicktime Movie&lt;/a&gt; (Caution! 122MB)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.jivesoftware.com/jivespace/servlet/JiveServlet/showImage/38-1385-1223/Picture+1.png"&gt;&lt;img src="http://www.jivesoftware.com/jivespace/servlet/JiveServlet/downloadImage/38-1385-1223/Picture+1.png" width="620"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:58b00a23-141a-41ae-a8d7-0c53c63e0add] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jivespace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">customization</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">template</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jivespace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">video</category>
      <pubDate>Fri, 08 Feb 2008 17:51:35 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/02/08/creating-dynamic-template-content-in-clearspace</guid>
      <dc:date>2008-02-08T17:51:35Z</dc:date>
      <clearspace:dateToText>11 months, 5 days ago</clearspace:dateToText>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/creating-dynamic-template-content-in-clearspace</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1385</wfw:commentRss>
    </item>
    <item>
      <title>Introduction to Skinning Clearspace</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/01/17/introduction-to-skinning-clearspace</link>
      <description>&lt;!-- [DocumentBodyStart:636db110-862d-4c99-9120-8f12825f5bc4] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Learn the basics of customizing your Clearspace theme in this introduction to skinning Clearspace with Matt Walker, professional services engineer (and juggler!) at Jive Software.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;object data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-IntroductionToSkinningClearspace734.flv&amp;amp;source=" height="294" type="application/x-shockwave-flash" width="400" wmode="transparent"&gt;&lt;param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-IntroductionToSkinningClearspace734.flv&amp;amp;source="/&gt;&lt;/object&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Or you can download the &lt;a class="jive-link-external-small" href="http://blip.tv/file/get/Samjive-IntroductionToSkinningClearspace734.mov"&gt;Quicktime version&lt;/a&gt; (Caution! ~100MB file)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can also learn more about customizing Clearspace by visiting our &lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/community/community/developer/clearspace/documentation"&gt;documentation space&lt;/a&gt;!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:636db110-862d-4c99-9120-8f12825f5bc4] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jivespace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">video</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">customization</category>
      <pubDate>Thu, 17 Jan 2008 19:28:35 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2008/01/17/introduction-to-skinning-clearspace</guid>
      <dc:date>2008-01-17T19:28:35Z</dc:date>
      <clearspace:dateToText>11 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/introduction-to-skinning-clearspace</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1365</wfw:commentRss>
    </item>
    <item>
      <title>The Switch to Freemarker</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2007/07/20/the-switch-to-freemarker</link>
      <description>&lt;!-- [DocumentBodyStart:178066f1-9872-4833-820d-911312dbb4cd] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Where are all the JSP's? That is a question we have been hearing a lot lately, after deciding that the view layer of Clearspace would be built on an open alternative to JSP, Freemarker. What is Freemarker? &lt;a class="jive-link-external-small" href="http://freemarker.org"&gt;Freemarker&lt;/a&gt; is simply a "template engine"; a generic tool to generate text output based on tempaltes. The next question that usually follows: &lt;strong&gt;Why?&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h4&gt;&lt;span&gt;Common problems with JSP&lt;/span&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Java code is too tempting, even though it is considered bad design to mix presentation with core logic, everyone knowingly does it.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Java code is required to do mundane things, such as &amp;amp;lt;a href="&amp;amp;lt;%= request.getContextPath() %&amp;gt;/index.html"&amp;amp;gt;Home page&amp;amp;lt;/a&amp;amp;gt;&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Simple tasks are difficult, such as escaping html, or formatting a date&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Looping is verbose, awkward and messy&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Bad exception handling, printing out things like NullPointerExceptions to the user&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Need a compiler and any change needs to be recompiled.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;Various application server bugs. We have recently run into a few problems on 'unnamed' application servers where&amp;nbsp; the jsp's are created importing the servlet package without fully qualifying names, This causes us to have class name problems.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h4&gt;&lt;span&gt;Freemarker as an alternative&lt;/span&gt;&lt;/h4&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To fully realize the benefits of the &lt;a class="jive-link-external-small" href="http://en.wikipedia.org/wiki/Model-view-controller"&gt;MVC Pattern&lt;/a&gt;, a true separation of Java Code (the controller) and the HTML (the view) is required. Using a template engine, such as Freemarker, as your view will solve many of the problems listed above. The underlying design will be cleaner, the syntax clearer, the error messages more meaningful, and the application more customizable.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Also, Unlike JSP, FreeMarker templates are completely independent of the file format; they can just as easily be used to create an HTML file, XML file, CSS file, JavaScript file, even a plain text file. In fact, FreeMarker is independent of servlets altogether, making it just as useful on the client as on the server.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;As an example of how Freemarker can cleanup your view pages, lets take one line of JSP and convert it to freemarker:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table&gt;&lt;tr&gt;&lt;th&gt;&lt;p&gt;JSP&lt;/p&gt;&lt;/th&gt;&lt;th&gt;&lt;p&gt;Freemarker&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&amp;amp;lt;% Action action = ActionUtils.getAction(); %&amp;amp;gt; &lt;/p&gt;&lt;p&gt;&amp;amp;lt;input type="text" name="subject" &lt;/p&gt;&lt;p&gt;value="&amp;amp;lt;%= action.getSubject() != null ? StringUtils.escapeHTMLTags(action.getSubject()) : "" %&amp;amp;gt; "/&amp;amp;gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&amp;amp;lt;input type="text" name="subject" &lt;/p&gt;&lt;p&gt;value="${subject!?html}"/&amp;amp;gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h4&gt;&lt;span&gt;Interesting Clearspace features relating to Freemarker&lt;/span&gt;&lt;/h4&gt;&lt;ul&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;&lt;strong&gt;Themes:&lt;/strong&gt; To help facilitate our customer's need to customize the look and feel of our products, we wrote a feature that provides our customer's the ability to customize most front end pages directly from the admin console without having to make a single change to the source code or even restart the application server. Simply select the page you want to customize and edit the template. Additionally, these custom pages can be grouped into different "Themes" and mapped to a commuity, a forum, even a URL pattern. This type of flexible UI would not be possible with JSP's. Freemarker provides us the ability to load the source of a template from a number of places, including a remote server, and without ever needing to be recompiled.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;&lt;strong&gt;Community Everywhere:&lt;/strong&gt; If you want to make some dynamic HTML content available on any remote site, such as displaying a Clearspace thread at the bottom of a remote article, all you have to do is process the freemarker template that contains the thread HTML, wrap it in document.write(result); and return contentType text/javascript.&lt;/p&gt;&lt;/li&gt;&lt;li level="1" type="ul"&gt;&lt;p&gt;&lt;strong&gt;Freemarker Email Templates:&lt;/strong&gt; Allows for easily customizable dynamic emails with very detailed and useful information.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After using Freemarker for some time, we can definitely say that it is a template language we?re confident in. We found it to be the easiest to use, learn and the most powerful while still having a clean, simple syntax. For a comparision with velocity, check out &lt;a class="jive-link-external-small" href="http://freemarker.org/fmVsVel.html"&gt;Freemarker vs. Velocity&lt;/a&gt;. We?ve also found that any good JSP programmer finds Freemarker enjoyable to use and learn. The one downside is that we all use Intellij Idea for development and there is currently no Freemarker support.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For those who still are not convinced, rest assured that it is still possible to make customizations to the application using only JSP's.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To learn more, check out &lt;a class="jive-link-external-small" href="http://www.javaworld.com/jw-01-2001/jw-0119-freemarker.html?page=1"&gt;FreeMarker: An open alternative to JSP&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:178066f1-9872-4833-820d-911312dbb4cd] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspacex</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">freemarker</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">ui</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jsp</category>
      <pubDate>Fri, 20 Jul 2007 16:20:00 GMT</pubDate>
      <author>nick@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2007/07/20/the-switch-to-freemarker</guid>
      <dc:date>2007-07-20T16:20:00Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/the-switch-to-freemarker</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1014</wfw:commentRss>
    </item>
    <item>
      <title>Clearspace Themes Explained</title>
      <link>http://www.jivesoftware.com/jivespace/blogs/jivespace/2007/07/17/clearspace-themes-explained</link>
      <description>&lt;!-- [DocumentBodyStart:dd15692e-d6eb-43fe-9ae4-8b88d989ffe5] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;In this video, Jive Software's Nick Hill talks about how to create themes for Clearspace.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;object data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-ClearspaceThemesExplained102.flv&amp;amp;source=" height="294" type="application/x-shockwave-flash" width="400" wmode="transparent"&gt;&lt;param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&amp;amp;file=http://blip.tv/file/get/Samjive-ClearspaceThemesExplained102.flv&amp;amp;source="/&gt;&lt;/object&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Or click &lt;a class="jive-link-external-small" href="http://blip.tv/file/get/Samjive-ClearspaceThemesExplained102.mov"&gt;here&lt;/a&gt; to watch the video.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:dd15692e-d6eb-43fe-9ae4-8b88d989ffe5] --&gt;</description>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">clearspace</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">themes</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">plugins</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">podcast</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">video</category>
      <category domain="http://www.jivesoftware.com/jivespace/blogs/jivespace/tags">jive_software</category>
      <pubDate>Tue, 17 Jul 2007 18:15:00 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/blogs/jivespace/2007/07/17/clearspace-themes-explained</guid>
      <dc:date>2007-07-17T18:15:00Z</dc:date>
      <clearspace:dateToText>1 year, 5 months ago</clearspace:dateToText>
      <wfw:comment>http://www.jivesoftware.com/jivespace/blogs/jivespace/comment/clearspace-themes-explained</wfw:comment>
      <wfw:commentRss>http://www.jivesoftware.com/jivespace/blogs/jivespace/feeds/comments?blogPost=1010</wfw:commentRss>
    </item>
  </channel>
</rss>

