<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniele Madama &#187; Cocoon</title>
	<atom:link href="http://www.danysoft.org/blog/category/my-it-world/cocoon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danysoft.org/blog</link>
	<description>Some pieces of me</description>
	<lastBuildDate>Mon, 24 Oct 2011 13:59:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>I&#8217;m still alive&#8230;</title>
		<link>http://www.danysoft.org/blog/2007/03/21/im-still-alive/</link>
		<comments>http://www.danysoft.org/blog/2007/03/21/im-still-alive/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 16:33:38 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[Me and my life]]></category>
		<category><![CDATA[My IT world]]></category>
		<category><![CDATA[Work stuff]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=68</guid>
		<description><![CDATA[<p>Yes, I know, I don&#8217;t blog from a lot of time, but in the last months I don&#8217;t have much time&#8230;<br /> From 15th January I was in <a href="http://en.wikipedia.org/wiki/Lugano">Lugano</a> for follow an interesting project based on <a href="http://cocoon.apache.org/2.1/">Cocoon</a> framework with a very nice <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> client. <br /> During this project I tried to port some <a href="http://cocoon.apache.org/2.1/userdocs/flow/api.html">flowscript</a> to <a href="http://jakarta.apache.org/commons/sandbox/javaflow/">Javaflow</a>, but in Cocoon 2.1 the Javaflow implementation is not complete and the are some boring issues. So the porting was put in pause, waiting for a official 2.2 release.<br />In the meanwhile we need some features like the possibility to load some selectionlist values into <a href="http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html">CForms</a> widgets during the bind (not at declaration time). For this I wrote two components that during the bindLoad() phase load into the widget the model&#8217;s collection</p>
<p>&#8230;<br />
  &lt;fb:selectionlist-value id=&#8221;l-country&#8221; path=&#8221;detail/country/id&#8221;&gt;<br />
    &lt;fb:selection-list path=&#8221;allCountries&#8221; value=&#8221;id&#8221; label=&#8221;name&#8221;/&gt;<br />
  &lt;/fb:selectionlist-value&gt;<br />
&#8230;<br/><br />
I think that this can be a common issue, so I will clean the code and contribute it.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2007%2F03%2F21%2Fim-still-alive%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2007%2F03%2F21%2Fim-still-alive%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Yes, I know, I don&#8217;t blog from a lot of time, but in the last months I don&#8217;t have much time&#8230;<br /> From 15th January I was in <a href="http://en.wikipedia.org/wiki/Lugano">Lugano</a> for follow an interesting project based on <a href="http://cocoon.apache.org/2.1/">Cocoon</a> framework with a very nice <a href="http://en.wikipedia.org/wiki/Ajax_%28programming%29">AJAX</a> client. <br /> During this project I tried to port some <a href="http://cocoon.apache.org/2.1/userdocs/flow/api.html">flowscript</a> to <a href="http://jakarta.apache.org/commons/sandbox/javaflow/">Javaflow</a>, but in Cocoon 2.1 the Javaflow implementation is not complete and the are some boring issues. So the porting was put in pause, waiting for a official 2.2 release.<br />In the meanwhile we need some features like the possibility to load some selectionlist values into <a href="http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html">CForms</a> widgets during the bind (not at declaration time). For this I wrote two components that during the bindLoad() phase load into the widget the model&#8217;s collection</p>
<p>&#8230;<br />
  &lt;fb:selectionlist-value id=&#8221;l-country&#8221; path=&#8221;detail/country/id&#8221;&gt;<br />
    &lt;fb:selection-list path=&#8221;allCountries&#8221; value=&#8221;id&#8221; label=&#8221;name&#8221;/&gt;<br />
  &lt;/fb:selectionlist-value&gt;<br />
&#8230;<br/><br />
I think that this can be a common issue, so I will clean the code and contribute it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2007%2F03%2F21%2Fim-still-alive%2F&amp;title=I%26%238217%3Bm%20still%20alive%26%238230%3B" id="wpa2a_2"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2007/03/21/im-still-alive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CocoonGT 2006</title>
		<link>http://www.danysoft.org/blog/2006/10/06/cocoongt-2006/</link>
		<comments>http://www.danysoft.org/blog/2006/10/06/cocoongt-2006/#comments</comments>
		<pubDate>Fri, 06 Oct 2006 14:57:13 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=53</guid>
		<description><![CDATA[<p><a href="http://www.cocoongt.org/chairs-big.png"><img src="http://www.cocoongt.org/chairs-small.png" alt="CocoonGT2006" /></a></p>
<p>I came back from the annual edition of <a href="http://www.cocoongt.org">Cocoon GetTogether</a> in Amsterdam.<br />
Saturday 30 I left for Amsterdam, I wait <a href="http://weblog.session.it/">Maurizio</a> at the Schipol airport for go at home. Sunday we wake not so later, only at 11am <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , in the afternoon <a href="http://www.mindthegab.com/">Gabriele</a> was arrived in Amsterdam, so we wait for him and me e Gabriele are gone to our <a href="http://www.stayokay.com/index.cfm?fuseaction=Herbergen.showHomeHB&#038;lng=2&#038;id=3">hostel</a>; the night also <a href="http://simonegianni.it/">Simone</a> join with us. At the end of day we make arrangements for meet us before of conference.<br />
Monday and tuesday there was the hackaton days, I tried to resolve some bug and start the integration of <a href="http://dojotoolkit.org/">Dojo</a> widgets into Forms, the last day of conference there was <a href="http://www.cocoongt.org/PROGRAM.html">some talks</a>; a relevant applause go to</p>
<ul>
<ol>
<a href="http://rabellino.it/blog/">Gianugo</a>&#8216;s talk about REST (I was involved in development of the site)
</ol>
<ol>
<a href="http://simonegianni.it">Simone</a>&#8216;s talk about Cocoon Blueprint (hey guy, good idea)
</ol>
<ol>
<a href="http://www.andrewsavory.com/blog/">Andrew</a>&#8216;s talks (surely the funniest)
</ol>
<ol>
<a href="http://www.codeconsult.ch/bertrand/">Bertrand</a>&#8216;s talk about <a href="http://incubator.apache.org/solr/">Solr</a> (powerful and interesting)
</ol>
</ul>
<p>Yesterday I came back to Italy, after all the Holland experience was good; meet the cocoon guys is a pleasure, I&#8217;m displeased because my english is not so well, so I cannot be able to have a long discussion with them. But inside me the light of &#8220;hacking&#8221; was revamped and I hope to keep it alive.</p>
<p>The photo of the event are published <a href="http://flickr.com/photos/tags/cocoongt2006">here</a>.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F10%2F06%2Fcocoongt-2006%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F10%2F06%2Fcocoongt-2006%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p><a href="http://www.cocoongt.org/chairs-big.png"><img src="http://www.cocoongt.org/chairs-small.png" alt="CocoonGT2006" /></a></p>
<p>I came back from the annual edition of <a href="http://www.cocoongt.org">Cocoon GetTogether</a> in Amsterdam.<br />
Saturday 30 I left for Amsterdam, I wait <a href="http://weblog.session.it/">Maurizio</a> at the Schipol airport for go at home. Sunday we wake not so later, only at 11am <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> , in the afternoon <a href="http://www.mindthegab.com/">Gabriele</a> was arrived in Amsterdam, so we wait for him and me e Gabriele are gone to our <a href="http://www.stayokay.com/index.cfm?fuseaction=Herbergen.showHomeHB&#038;lng=2&#038;id=3">hostel</a>; the night also <a href="http://simonegianni.it/">Simone</a> join with us. At the end of day we make arrangements for meet us before of conference.<br />
Monday and tuesday there was the hackaton days, I tried to resolve some bug and start the integration of <a href="http://dojotoolkit.org/">Dojo</a> widgets into Forms, the last day of conference there was <a href="http://www.cocoongt.org/PROGRAM.html">some talks</a>; a relevant applause go to</p>
<ul>
<ol>
<a href="http://rabellino.it/blog/">Gianugo</a>&#8216;s talk about REST (I was involved in development of the site)
</ol>
<ol>
<a href="http://simonegianni.it">Simone</a>&#8216;s talk about Cocoon Blueprint (hey guy, good idea)
</ol>
<ol>
<a href="http://www.andrewsavory.com/blog/">Andrew</a>&#8216;s talks (surely the funniest)
</ol>
<ol>
<a href="http://www.codeconsult.ch/bertrand/">Bertrand</a>&#8216;s talk about <a href="http://incubator.apache.org/solr/">Solr</a> (powerful and interesting)
</ol>
</ul>
<p>Yesterday I came back to Italy, after all the Holland experience was good; meet the cocoon guys is a pleasure, I&#8217;m displeased because my english is not so well, so I cannot be able to have a long discussion with them. But inside me the light of &#8220;hacking&#8221; was revamped and I hope to keep it alive.</p>
<p>The photo of the event are published <a href="http://flickr.com/photos/tags/cocoongt2006">here</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F10%2F06%2Fcocoongt-2006%2F&amp;title=CocoonGT%202006" id="wpa2a_4"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2006/10/06/cocoongt-2006/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back from vacations&#8230;</title>
		<link>http://www.danysoft.org/blog/2006/09/04/back-from-vacations/</link>
		<comments>http://www.danysoft.org/blog/2006/09/04/back-from-vacations/#comments</comments>
		<pubDate>Mon, 04 Sep 2006 15:40:34 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>
		<category><![CDATA[Me and my life]]></category>
		<category><![CDATA[life]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=49</guid>
		<description><![CDATA[<p>Yep, I came back to the office <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
My vacations in the Rodi Island are ended, I&#8217;m very tired but very happy.<br />
Some news:<br />
- finally this morning <a href="http://www.fastweb.it">Fastweb</a> bring me the internet connection after 3 months of call to customer care.<br />
- I&#8217;m looking for partecipate to this <a href="http://www.cocoongt.org">Cocoon GetTogheter</a>.<br />
- I hope to upload the vacation&#8217;s photo soon, we made also a video, but probably I&#8217;ll upload only some parts of it.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F09%2F04%2Fback-from-vacations%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F09%2F04%2Fback-from-vacations%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Yep, I came back to the office <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
My vacations in the Rodi Island are ended, I&#8217;m very tired but very happy.<br />
Some news:<br />
- finally this morning <a href="http://www.fastweb.it">Fastweb</a> bring me the internet connection after 3 months of call to customer care.<br />
- I&#8217;m looking for partecipate to this <a href="http://www.cocoongt.org">Cocoon GetTogheter</a>.<br />
- I hope to upload the vacation&#8217;s photo soon, we made also a video, but probably I&#8217;ll upload only some parts of it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2006%2F09%2F04%2Fback-from-vacations%2F&amp;title=Back%20from%20vacations%26%238230%3B" id="wpa2a_6"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2006/09/04/back-from-vacations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guilder HomePage</title>
		<link>http://www.danysoft.org/blog/2005/11/25/guilder-homepage/</link>
		<comments>http://www.danysoft.org/blog/2005/11/25/guilder-homepage/#comments</comments>
		<pubDate>Fri, 25 Nov 2005 16:15:07 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=25</guid>
		<description><![CDATA[<p>From today Guilder has a new <a href="http://www.danysoft.org/wiki/index.php?title=Guilder">homepage</a>, with news, changelog, screenshot and download.<br />
Stay tuned <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F25%2Fguilder-homepage%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F25%2Fguilder-homepage%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>From today Guilder has a new <a href="http://www.danysoft.org/wiki/index.php?title=Guilder">homepage</a>, with news, changelog, screenshot and download.<br />
Stay tuned <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F25%2Fguilder-homepage%2F&amp;title=Guilder%20HomePage" id="wpa2a_8"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/11/25/guilder-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guilder&#8230; TODO list</title>
		<link>http://www.danysoft.org/blog/2005/11/17/guilder-todo-list/</link>
		<comments>http://www.danysoft.org/blog/2005/11/17/guilder-todo-list/#comments</comments>
		<pubDate>Thu, 17 Nov 2005 09:53:50 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=22</guid>
		<description><![CDATA[<p>Hola,<br />
in the last days I haven&#8217;t much time to spent on Guilder&#8217;s development, so I reduce it on some fixes (waitin for the commit). But the idea are many.<br />
An interesting PointOfView are on the <a href="http://www.andrewsavory.com/blog/archives/000900.html">Adrew&#8217;s blog</a>. I&#8217;d like to implements a simple wizard for blocks selection, in which a user choose only what he want to do, so a simple webapp include only forms and ajax block and so on.<br />
Another tool that I want to add (LF5 factory for log was added) is the possibility to enable flowscript debug, this feature is not known to all user, and probably have a easy way to do it is not so bad.</p>
<p>If you have another idea or hint, contact me.</p>
<p>Daniele.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F17%2Fguilder-todo-list%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F17%2Fguilder-todo-list%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hola,<br />
in the last days I haven&#8217;t much time to spent on Guilder&#8217;s development, so I reduce it on some fixes (waitin for the commit). But the idea are many.<br />
An interesting PointOfView are on the <a href="http://www.andrewsavory.com/blog/archives/000900.html">Adrew&#8217;s blog</a>. I&#8217;d like to implements a simple wizard for blocks selection, in which a user choose only what he want to do, so a simple webapp include only forms and ajax block and so on.<br />
Another tool that I want to add (LF5 factory for log was added) is the possibility to enable flowscript debug, this feature is not known to all user, and probably have a easy way to do it is not so bad.</p>
<p>If you have another idea or hint, contact me.</p>
<p>Daniele.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F17%2Fguilder-todo-list%2F&amp;title=Guilder%26%238230%3B%20TODO%20list" id="wpa2a_10"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/11/17/guilder-todo-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Global variable and session</title>
		<link>http://www.danysoft.org/blog/2005/11/08/global-variable-and-session/</link>
		<comments>http://www.danysoft.org/blog/2005/11/08/global-variable-and-session/#comments</comments>
		<pubDate>Tue, 08 Nov 2005 14:30:28 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=20</guid>
		<description><![CDATA[<p>When you write your flowscript in cocoon, if you declare a global variable, this was stored in session (implicit creation of session).</p>
<pre>
<code>
var i;
function count() {
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
<p>This work propertly but</p>
<pre>
<code>
var i=0;
function count() {
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
<p>doesn&#8217;t, this set &#8216;i&#8217; to 0 each time that the script was executed. So if you need to initialize it one time only, you must check the status</p>
<pre>
<code>
var i;
function init() {
    if (i == undefined) {
        i = 0;
    }
}
function count() {
    init();
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F08%2Fglobal-variable-and-session%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F08%2Fglobal-variable-and-session%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>When you write your flowscript in cocoon, if you declare a global variable, this was stored in session (implicit creation of session).</p>
<pre>
<code>
var i;
function count() {
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
<p>This work propertly but</p>
<pre>
<code>
var i=0;
function count() {
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
<p>doesn&#8217;t, this set &#8216;i&#8217; to 0 each time that the script was executed. So if you need to initialize it one time only, you must check the status</p>
<pre>
<code>
var i;
function init() {
    if (i == undefined) {
        i = 0;
    }
}
function count() {
    init();
    cocoon.sendPage("view-count", {"counter": ++i});
}
</code>
</pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F11%2F08%2Fglobal-variable-and-session%2F&amp;title=Global%20variable%20and%20session" id="wpa2a_12"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/11/08/global-variable-and-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Guilder was born</title>
		<link>http://www.danysoft.org/blog/2005/10/06/guilder-was-born/</link>
		<comments>http://www.danysoft.org/blog/2005/10/06/guilder-was-born/#comments</comments>
		<pubDate>Thu, 06 Oct 2005 14:07:24 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=19</guid>
		<description><![CDATA[<p>Hi folks,<br />
today CBuilder was death, and Guilder was born.<br />
Ugo Cei has committed the source <a href="http://svn.apache.org/repos/asf/cocoon/whiteboard/guilder">here</a>, and presented it during the Cocoon GetTogheter with a mail to <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112860694026815&amp;w=2">dev@</a> and <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-users&amp;m=112860694228791&amp;w=2">users@</a> lists.</p>
<p>The devel go ahead&#8230; </p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F10%2F06%2Fguilder-was-born%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F10%2F06%2Fguilder-was-born%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Hi folks,<br />
today CBuilder was death, and Guilder was born.<br />
Ugo Cei has committed the source <a href="http://svn.apache.org/repos/asf/cocoon/whiteboard/guilder">here</a>, and presented it during the Cocoon GetTogheter with a mail to <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112860694026815&amp;w=2">dev@</a> and <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-users&amp;m=112860694228791&amp;w=2">users@</a> lists.</p>
<p>The devel go ahead&#8230; </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F10%2F06%2Fguilder-was-born%2F&amp;title=Guilder%20was%20born" id="wpa2a_14"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/10/06/guilder-was-born/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing CocoonBuilder</title>
		<link>http://www.danysoft.org/blog/2005/09/23/developing-cocoonbuilder/</link>
		<comments>http://www.danysoft.org/blog/2005/09/23/developing-cocoonbuilder/#comments</comments>
		<pubDate>Fri, 23 Sep 2005 11:00:53 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=16</guid>
		<description><![CDATA[<p>After the post on dev@, I received some consents and some hints.<br />
So I must add this features:<br />
1) a better and more explicit dependencies selection;<br />
2) add some properties from build.properties (like samples, javadoc, sources in jars, etc);<br />
3) call ant task for build the project;<br />
4) start/stop of jetty;<br />
5) better UI&#8217;s look&feel;</p>
<p>For the point number 5 I&#8217;m searching for a volunteer, anyone? <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F23%2Fdeveloping-cocoonbuilder%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F23%2Fdeveloping-cocoonbuilder%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>After the post on dev@, I received some consents and some hints.<br />
So I must add this features:<br />
1) a better and more explicit dependencies selection;<br />
2) add some properties from build.properties (like samples, javadoc, sources in jars, etc);<br />
3) call ant task for build the project;<br />
4) start/stop of jetty;<br />
5) better UI&#8217;s look&feel;</p>
<p>For the point number 5 I&#8217;m searching for a volunteer, anyone? <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F23%2Fdeveloping-cocoonbuilder%2F&amp;title=Developing%20CocoonBuilder" id="wpa2a_16"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/09/23/developing-cocoonbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Release of CocoonBuilder</title>
		<link>http://www.danysoft.org/blog/2005/09/22/first-release-of-cocoonbuilder/</link>
		<comments>http://www.danysoft.org/blog/2005/09/22/first-release-of-cocoonbuilder/#comments</comments>
		<pubDate>Thu, 22 Sep 2005 15:48:24 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=15</guid>
		<description><![CDATA[<p>Today I <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112740315931691&amp;w=2">annunced</a> the first release on dev@cocoon.apache.org.</p>
<p>I hope that this little application go ahead and it will be useful for all people that want to begin to devel with cocoon.</p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Ffirst-release-of-cocoonbuilder%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Ffirst-release-of-cocoonbuilder%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>Today I <a href="http://marc.theaimsgroup.com/?l=xml-cocoon-dev&amp;m=112740315931691&amp;w=2">annunced</a> the first release on dev@cocoon.apache.org.</p>
<p>I hope that this little application go ahead and it will be useful for all people that want to begin to devel with cocoon.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Ffirst-release-of-cocoonbuilder%2F&amp;title=First%20Release%20of%20CocoonBuilder" id="wpa2a_18"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/09/22/first-release-of-cocoonbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CocoonBuilder</title>
		<link>http://www.danysoft.org/blog/2005/09/22/cocoonbuilder/</link>
		<comments>http://www.danysoft.org/blog/2005/09/22/cocoonbuilder/#comments</comments>
		<pubDate>Thu, 22 Sep 2005 08:19:15 +0000</pubDate>
		<dc:creator>Daniele Madama</dc:creator>
				<category><![CDATA[Cocoon]]></category>

		<guid isPermaLink="false">http://www.danysoft.org/blog/?p=14</guid>
		<description><![CDATA[<p>I&#8217;m working on a little builder for <a href="http://cocoon.apache.org/2.1/">Cocoon</a>. It&#8217;s based on SWING and this is my first SWING application, so probably it won&#8217;t be the best SWING application <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>This application (formally called Cocoon Builder) reads the [local.]blocks.properties and gump.xml for blocks, their hierarchy and their descriptions; it permits to select the single block with all dependencies and writes the local.blocks.properties.</p>
<p>In the future it will permit to select the main properties of build.properties and probably the execution of build process too.</p>
<p>Stay tuned <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></description>
			<content:encoded><![CDATA[<!-- Start Phiware Voice Button --><div id="vox">
                   <a href="http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Fcocoonbuilder%2F" onClick="javascript:window.open('http://tts-voice.phiware.com/danysoftvox?url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Fcocoonbuilder%2F', 'PhiwareVoice', 'toolbar=no,status=no,width=400,height=300,scrollbars=no,menubar=no'); return false;" accesskey="L" target="_vox">
                     <img src="http://voice.phiware.com/resources/buttons/button_80.png" alt="listen this page" />
                   </a>
                 </div><!-- End Phiware Voice Button --><p>I&#8217;m working on a little builder for <a href="http://cocoon.apache.org/2.1/">Cocoon</a>. It&#8217;s based on SWING and this is my first SWING application, so probably it won&#8217;t be the best SWING application <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
<p>This application (formally called Cocoon Builder) reads the [local.]blocks.properties and gump.xml for blocks, their hierarchy and their descriptions; it permits to select the single block with all dependencies and writes the local.blocks.properties.</p>
<p>In the future it will permit to select the main properties of build.properties and probably the execution of build process too.</p>
<p>Stay tuned <img src='http://www.danysoft.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.danysoft.org%2Fblog%2F2005%2F09%2F22%2Fcocoonbuilder%2F&amp;title=CocoonBuilder" id="wpa2a_20"><img src="http://www.danysoft.org/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.danysoft.org/blog/2005/09/22/cocoonbuilder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

