<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Spikes Of Nothingness - jpublish tag</title>
  <link>http://weblog.flop.ca/tags/jpublish/</link>
  <description>Florin T.PATRASCU&#039;s blog</description>
  <language>en</language>
  <copyright>Florin T.PATRASCU</copyright>
  <lastBuildDate>Sat, 12 May 2012 02:12:08 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>StringTemplate Renderer for JPublish, a Component this time ;)  </title>
    <link>http://weblog.flop.ca/2007/09/01/1188678524233.html</link>
    
      
        <description>
          &lt;p&gt;  &lt;/p&gt;
Hi there,&lt;br /&gt;
&lt;br /&gt;
For those of you maintaining JPublish sites developed with Velocity or FreeMarker, using the newly added StringTemplate renderer is not an easy option, especially if those sites are in production. So what can you do if you want to use ST? &lt;br /&gt;
&lt;br /&gt;
Don&#039;t worry, you can render StringTemplate syntax in Velocity/FreeMarker driven pages by using the StringTemplate component that I just added to the JPublish component family.&lt;br /&gt;
&lt;br /&gt;
Using it is very simple. &lt;br /&gt;
&lt;br /&gt;
Build the ST Component from &lt;a href=&#034;http://jpublish.googlecode.com/svn/trunk/components/jpStringTemplate/&#034;&gt;SVN&lt;/a&gt;&amp;nbsp; and load it in jpublish.xml:&lt;br /&gt;
&lt;blockquote&gt;&amp;lt;component-manager&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;components&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;component id=&amp;quot;JPST&amp;quot; classname=&amp;quot;ca.flop.jpublish.components.JPSTComponent&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;stringtemplate-groups&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;group name=&amp;quot;default&amp;quot; relative-root-dir=&amp;quot;/st_content&amp;quot; refresh-interval=&amp;quot;15&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lexer=&amp;quot;org.antlr.stringtemplate.language.DefaultTemplateLexer&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;group name=&amp;quot;menus&amp;quot; relative-root-dir=&amp;quot;/st_menus&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/stringtemplate-groups&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/component&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/components&amp;gt;&lt;br /&gt;
&amp;lt;/component-manager&amp;gt;&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
and then use the ST component wherever ST is required, for example in a Velocity page:&lt;br /&gt;
&lt;strong&gt;&lt;font color=&#034;#333399&#034;&gt; $components.JPST.renderPath(&amp;quot;menus:main_menu&amp;quot;)&lt;/font&gt;&lt;/strong&gt;, the contents of the &lt;strong&gt;main_menu.st&lt;/strong&gt; file will be immediately rendered in-line.&lt;br /&gt;
&lt;br /&gt;
I will add more details in the &lt;a href=&#034;http://code.google.com/p/jpublish/wiki/JPublishUserGuide&#034;&gt;JPublish Wiki&lt;/a&gt;, meanwhile you can find the code and a &lt;a href=&#034;http://jpublish.googlecode.com/svn/trunk/components/jpStringTemplate/web/&#034;&gt;demo web application&lt;/a&gt; in our SVN.&lt;br /&gt;
&lt;br /&gt;
Have fun!&lt;br /&gt;
-florin
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://weblog.flop.ca/2007/09/01/1188678524233.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2007/09/01/1188678524233.html</guid>
    <pubDate>Sat, 01 Sep 2007 20:28:44 GMT</pubDate>
  </item>
  
  <item>
    <title>Reviving JPublish</title>
    <link>http://weblog.flop.ca/2007/05/15/1179277769832.html</link>
    
      
        <description>
          &lt;p&gt;
This is just a small update to let you know that a bunch of us will revive &lt;a href=&#034;http://code.google.com/p/jpublish/&#034;&gt;JPublish&lt;/a&gt; and put this trusty framework back where it belongs: in the hand of those who want to have the job done :)
&lt;/p&gt;
&lt;p&gt;
Right now we&#039;re in the midst of cleaning the docs, organizing the new space, cleaning the examples and the new code, and obviously: bringing new values to JPublish and teaching this framework new tricks :)
&lt;/p&gt;
&lt;p&gt;
You are all invited to join us and send your feedback.
&lt;/p&gt;&lt;p&gt;
The code can be found here:&lt;br/&gt;
&lt;b&gt;http://code.google.com/p/jpublish/&lt;/b&gt;
&lt;/p&gt;&lt;p&gt;
The code, based on JPublish 2.x series, is stable and functional.
&lt;/p&gt;
Best regards,

&lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://weblog.flop.ca/2007/05/15/1179277769832.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2007/05/15/1179277769832.html</guid>
    <pubDate>Wed, 16 May 2007 01:09:29 GMT</pubDate>
  </item>
  
  <item>
    <title>simple Tag Cloud component for JPublish</title>
    <link>http://weblog.flop.ca/2006/10/21/1161474590401.html</link>
    
      
        <description>
          &lt;p&gt;&lt;font size=&#034;3&#034;&gt; Wow I can&#039;t believe I couldn&#039;t post any news all this time. Busy, busy, busy :&#039;(&lt;span style=&#034;font-family: Tahoma;&#034;&gt; I&#039;ll do it today and I am doing it again for those of you using &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://www.jpublish.org&#034;&gt;JPublish&lt;/a&gt;  2.x &lt;span style=&#034;font-family: Tahoma;&#034;&gt; for web development.&lt;/span&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;Today we have tagClouds on the menu ;)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&#034;3&#034;&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;&lt;/span&gt;&lt;/font&gt;&lt;br /&gt;
&lt;table&gt;
    &lt;tbody&gt;
        &lt;tr&gt;
            &lt;td valign=&#034;top&#034;&gt;&lt;img src=&#034;http://weblog.flop.ca/common/images/tagcloud.png&#034; alt=&#034;&#034; /&gt; &lt;/td&gt;
            &lt;td&gt;&amp;nbsp;&lt;/td&gt;
            &lt;td&gt;&lt;font size=&#034;3&#034;&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;I believe everybody knows what a tagCloud is?! &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://en.wikipedia.org/wiki/Tag_cloud&#034;&gt;Wikipedia&lt;/a&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt; explains that pretty well.&lt;/span&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;I like a lot the simplicity and the implementation of the tagCloud in &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://pebble.sourceforge.net/&#034;&gt;Pebble&lt;/a&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;, a wonderful blog framework, written by Simon Brown and I wanted to have something like that for my own web applications I write with JPublish. &lt;/span&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt; &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/tbody&gt;
&lt;/table&gt;
&lt;font size=&#034;3&#034;&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;I wanted something similar, simple and efficient but designed as a reusable component and this is how I decided to write a new JPublish component called: &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://tagcloud.flop.ca/&#034;&gt;JPTags&lt;/a&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;, which will allow&amp;nbsp; you to enable tagClouds for any JPublish application. Is a freeware piece of software, still in development but ready to serve ;)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&#034;3&#034;&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt; There is also a &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://tagcloud.flop.ca/readme.html&#034;&gt;readme&lt;/a&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt; included in the &lt;/span&gt;&lt;a style=&#034;font-family: Tahoma;&#034; href=&#034;http://tagcloud.flop.ca&#034;&gt;DEMO&lt;/a&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt; so you&#039;ll find out very quickly how to enable your own tagCloud in your application.&lt;/span&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt;  Cheers,&lt;/span&gt;&lt;br style=&#034;font-family: Tahoma;&#034; /&gt;&lt;span style=&#034;font-family: Tahoma;&#034;&gt; -florin&lt;/span&gt;&lt;/font&gt; &lt;/p&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <comments>http://weblog.flop.ca/2006/10/21/1161474590401.html#comments</comments>
    <guid isPermaLink="true">http://weblog.flop.ca/2006/10/21/1161474590401.html</guid>
    <pubDate>Sat, 21 Oct 2006 23:49:50 GMT</pubDate>
  </item>
  
  </channel>
</rss>

