<?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"
	>

<channel>
	<title>pizze-ria</title>
	<atom:link href="http://www.pizze-ria.it/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.pizze-ria.it</link>
	<description>Discussion about rich Internet application</description>
	<pubDate>Mon, 04 May 2009 07:45:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>All4Web 8 may Milano</title>
		<link>http://www.pizze-ria.it/?p=104</link>
		<comments>http://www.pizze-ria.it/?p=104#comments</comments>
		<pubDate>Mon, 04 May 2009 07:38:42 +0000</pubDate>
		<dc:creator>Lorenzo</dc:creator>
		
		<category><![CDATA[generic]]></category>

		<guid isPermaLink="false">http://www.pizze-ria.it/?p=104</guid>
		<description><![CDATA[http://www.all4webday.com/ 
Free event (in Italian language)
Nine different communities and user groups joined their efforts to organize
a unique event. Twelve sessions, plus two plenary, among three different
tracks:
http://www.all4webday.com/jsp/Wiki?Agenda
The event is totally free, but registration is required:
http://www.all4webday.com/subscribe/event/2
One track is dedicated to &#8220;RIA vs RIA&#8221;, where different people will
implement the same application using different technologies: Silverlight,
Ajax, Flex and JavaFX. [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="nofollow" href="http://www.all4webday.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.all4webday.com');" target="_blank">http://www.all4webday.com/ </a></p>
<p>Free event (in Italian language)</p>
<p>Nine different communities and user groups joined their efforts to organize<br />
a unique event. Twelve sessions, plus two plenary, among three different<br />
tracks:<br />
<a rel="nofollow" href="http://www.all4webday.com/jsp/Wiki?Agenda" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.all4webday.com');" target="_blank">http://www.all4webday.com/jsp/Wiki?Agenda</a></p>
<p>The event is totally free, but registration is required:<br />
<a rel="nofollow" href="http://www.all4webday.com/subscribe/event/2" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.all4webday.com');" target="_blank">http://www.all4webday.com/subscribe/event/2</a></p>
<p>One track is dedicated to &#8220;RIA vs RIA&#8221;, where different people will<br />
implement the same application using different technologies: Silverlight,<br />
Ajax, Flex and JavaFX. At the end there will be a joined session to compare<br />
all of them.</p>
<p>The Pizze-RIA speeches is &#8220;Flex Injection&#8221; and &#8220;RIA vs RIA&#8221;</p>
<p>We hope to see all you in Milan ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pizze-ria.it/?feed=rss2&amp;p=104</wfw:commentRss>
		</item>
		<item>
		<title>Screen Ruler with javaFX</title>
		<link>http://www.pizze-ria.it/?p=66</link>
		<comments>http://www.pizze-ria.it/?p=66#comments</comments>
		<pubDate>Mon, 29 Dec 2008 18:42:26 +0000</pubDate>
		<dc:creator>Lorenzo</dc:creator>
		
		<category><![CDATA[javaFX]]></category>

		<guid isPermaLink="false">http://www.pizze-ria.it/?p=66</guid>
		<description><![CDATA[Some weeks ago JavaFX version 1.0 was released. After some very busy days and Christmas holidays, I&#8217;ve finally found a few hours to spend on it.
My goal was to create a ruler application with guideLine, measuredArea and other things like that. In the same time I&#8217;ve been exploring the JavaFX 1.0 API.
Try it
When developing this [...]]]></description>
			<content:encoded><![CDATA[<p>Some weeks ago JavaFX version 1.0 was released. After some very busy days and Christmas holidays, I&#8217;ve finally found a few hours to spend on it.</p>
<p>My goal was to create a ruler application with guideLine, measuredArea and other things like that. In the same time I&#8217;ve been exploring the JavaFX 1.0 API.</p>
<div id="attachment_69" class="wp-caption alignnone" style="width: 160px"><a href="http://www.pizze-ria.it/wp-content/uploads/2008/12/picture-2.png" ><img class="size-thumbnail wp-image-69" title="Ruler Example" src="http://www.pizze-ria.it/wp-content/uploads/2008/12/picture-2-150x150.png" alt="Add guideline and mesaured area" width="150" height="150" /></a><p class="wp-caption-text">Add guideline and mesaured area</p></div>
<p><a href="http://www.pizze-ria.it/upload/ruler/Rulers.jnlp" >Try it</a></p>
<p>When developing this small project of mine, I discovered some great features and at the same time I&#8217;ve found a few issues with javaFX.</p>
<p>That&#8217;s what I like:</p>
<ul>
<li>Binding. It&#8217;s very powerful. I &#8216;ve been using binding in flex but with JavaFX the concept is much more stretched to its limits.</li>
<li>API. The basic API is quite good being a 1.0 release. They can improve some things but as a first step, it&#8217;s definitely a very good one.</li>
<li>Skinning. I haven&#8217;t used it already. Anyway it looks quite promising.</li>
<li>CSS. I hoped I wuold have found more examples and documentation. Anyway it&#8217;s useful.</li>
</ul>
<p>And here are some issues:</p>
<ul>
<li>Transparent objects don&#8217;t fire events. At the moment I&#8217;m using a workaround (i.e. setting opacity:0.1)</li>
<li>TextBoxes don&#8217;t have onFocusLost and onFocusGain events. There are also some workarounds here.</li>
<li>Code Hint and Debug features (in NetBeans IDE) need more enhancements and fixes</li>
</ul>
<p>My application works consists of 4 Classes and a Main one as launcher:</p>
<ul>
<li>GuideLine (from rulers you can drag an horizontal and vertical guide)</li>
<li>Rulers (draws rulers on vertical and horizontal side)</li>
<li>MeasuredArea (a draggable and resizable Colored Rectangle)</li>
<li>MeasuredLine (a red line is drawn beetween two Guidelines on rollover)</li>
<li>Main (Launcher application and some handler functions)</li>
</ul>
<p>You can found a NetBeans project <a href="http://www.pizze-ria.it/wp-content/uploads/2008/12/rulers.zip" onclick="javascript:pageTracker._trackPageview('/downloads/wp-content/uploads/2008/12/rulers.zip');">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pizze-ria.it/?feed=rss2&amp;p=66</wfw:commentRss>
		</item>
		<item>
		<title>Flex Ant Task - project example - (module, external lib, optimize module)</title>
		<link>http://www.pizze-ria.it/?p=48</link>
		<comments>http://www.pizze-ria.it/?p=48#comments</comments>
		<pubDate>Sun, 07 Sep 2008 18:25:48 +0000</pubDate>
		<dc:creator>Lorenzo</dc:creator>
		
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.pizze-ria.it/?p=48</guid>
		<description><![CDATA[Two weeks ago I met some friends of mine also involved in RIAs like me and the Flex Ant Tasks were one of the topics of our discussion. Then I decided to blog about it.
I&#8217;ve googled many times on this subject. The documentantion from Adobe is very basic. On the web you can find many snippets of code, but [...]]]></description>
			<content:encoded><![CDATA[<p>Two weeks ago I met some friends of mine also involved in RIAs like me and the Flex Ant Tasks were one of the topics of our discussion. Then I decided to blog about it.</p>
<p>I&#8217;ve googled many times on this subject. The documentantion from Adobe is very basic. On the web you can find many snippets of code, but then it&#8217;s difficult to find a working project.</p>
<p>Now the quest is over! You can find a complete project <a href="http://www.pizze-ria.it/upload/FlexAntProject.zip" onclick="javascript:pageTracker._trackPageview('/downloads/upload/FlexAntProject.zip');">here</a> ;)</p>
<p>Unzip it. Then start Eclipse and go to File->Import->From FileSystem</p>
<p>The project is based on:</p>
<ul>
<li> <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/livedocs.adobe.com');">Flex Ant Tasks</a></li>
<li><a href="http://ant-contrib.sourceforge.net/" onclick="javascript:pageTracker._trackPageview('/outbound/article/ant-contrib.sourceforge.net');">Ant-Contrib</a></li>
</ul>
<p>The Flex Ant Task and Ant-Contrib jars must already be present in the ant lib directory or in a .ant/lib directory inside your home dir. If the Ant-Contrib lib jar referenced in build.xml is not loaded, then add it on your eclipse ant classpath following these steps:</p>
<ul>
<li>right click on build.xml</li>
<li>select &#8220;run as -&gt; Ant build&#8230;&#8221;</li>
<li>select ant &#8220;classpath&#8221; tab</li>
<li>On &#8220;additional task&#8221; add antcontrib jar</li>
</ul>
<p>Now, just launch the <em>compile</em> target and the project will be compiled.</p>
<p>The project contains a &#8221;classes&#8221; directory where I put all my AS3 classes, a &#8220;libs&#8221; directory where you can add all your external swc libraries and a mxml directory with all the mxml source. If you need to change the names of these directories, you can do so by editing the included build.properties file.<br />
I like Flex modules because they are easy to understand. With this ant task you can use the &#8220;optimize&#8221;  module (just add it to the mxml/module directory). What does <em>optimize</em> mean? An <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=creating_modules_4.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/livedocs.adobe.com');">optimize</a> module shares classes already loaded from a main swf.</p>
<p>This way you can reduce your application size and manage it with ant! :)</p>
<pre class="xml" name="code">
<?xml version="1.0" encoding="utf-8"?>
<project name="Flex ant task project" basedir="." default="compile" xmlns:antcontrib="antlib:net.sf.antcontrib">
<taskdef resource="flexTasks.tasks" classpath="${basedir}/antlib/flexTasks.jar" />   

<!-- NOTE: This script assumes you have the AntContrib tasks defined and ready
to go in your ant file. See the AntContrib documentation for details -->
<property file="build.properties"/>

<!-- Personal setting  -->
<property name="FLEX_HOME" value="${flex.SDK}"/>
<property name="DEPLOY_DIR" value="${project.deployDir}"/>

<!-- project setting -->
<property name="APP_ROOT" value="${project.src}" />
<property name="APP_CLASSES" value="${project.classes}" />
<property name="APP_MAIN" value="${project.main}" />
<property name="WEB_APP_NAME" value="${project.name}" />
<property name="swc-dir" value="${project.libs}" />
<property name="background" value="${project.background}" />
<property name="REPORT" value="${project.report}" />

<!-- Macro - compile the application and module  -->
<macrodef name="compile_flex_app">

<attribute name="src-file"/>
<attribute name="out-file"/>
<attribute name="use-network"/>

<sequential>
<echo message="compile template:@{src-file} use-network:@{use-network}"/>
<echo message="@{src-file}"/>
<mxmlc file="@{src-file}"
	output="@{out-file}"
	actionscript-file-encoding="UTF-8"
	default-background-color="${background}"
	keep-generated-actionscript="true"
	use-network="@{out-file}"
	link-report="${basedir}/${REPORT}"
>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks"/>
<compiler.source-path path-element="${APP_CLASSES}"/>

 <include-libraries file="${project.libs}" />
 </mxmlc>
</sequential>

 </macrodef>

<macrodef name="compile_flex_module">
   <attribute name="modules"/>
   <attribute name="use-network"/>
   <attribute name="out-dir"/>

<sequential>
<echo message="compile modules:@{modules} use-network:@{use-network}"/>
<antcontrib:for param="file" >
<!-- include all mxml module in build and subidr (ex. /lib) -->
<fileset dir="${APP_ROOT}/module" >
<include name="**/*.mxml" />
</fileset>
	<sequential>
	<echo message="- @{file}"/>
	<mxmlc file="@{file}"
		actionscript-file-encoding="UTF-8"
		incremental="true"
		default-background-color="${background}"
		use-network="@{use-network}"
		load-externs="${REPORT}"
	>
	 <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
	 <source-path path-element="${FLEX_HOME}/frameworks"/>

	 <!-- source paths -->
	 <compiler.source-path path-element="${APP_ROOT}"/>
	 <compiler.source-path path-element="${APP_CLASSES}"/>
	 <!-- add here any other  source path -->

	<!-- add external libraries -->
	<include-libraries file="${project.libs}" />
	</mxmlc>
	</sequential>
</antcontrib:for>

<!-- move swf module to build dir -->
<move todir="@{out-dir}">
<fileset dir="${APP_ROOT}/module" >
<include name="**/*.swf" />
</fileset>
</move>
</sequential>
 </macrodef>

<target name="setup">
<mkdir dir="${DEPLOY_DIR}"/>
<mkdir dir="${project.bin}"/>
</target> 

<target name="compile" depends="setup">
<echo message="${FLEX_HOME}"/>
<!-- compile main mxml file -->
<compile_flex_app src-file="${APP_MAIN}" out-file="${DEPLOY_DIR}/${project.name}.swf" use-network="true"/>

<!-- compile optimize modules. The module are optimize using Main file-->
<compile_flex_module modules="${APP_ROOT}/module" use-network="true" out-dir="${DEPLOY_DIR}/module/"/>
</target>  

<target name="deploy">
<copy todir="${DEPLOY_DIR}">
<fileset dir="${WEBROOT_DIR}"/>
</copy>
</target>

<target name="clean">
<delete dir="${DEPLOY_DIR}" />
<delete dir="${project.bin}" />
</target>
</project>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.pizze-ria.it/?feed=rss2&amp;p=48</wfw:commentRss>
		</item>
		<item>
		<title>Questions and answers session about the state of JavaFX</title>
		<link>http://www.pizze-ria.it/?p=43</link>
		<comments>http://www.pizze-ria.it/?p=43#comments</comments>
		<pubDate>Tue, 26 Aug 2008 08:16:16 +0000</pubDate>
		<dc:creator>Lorenzo</dc:creator>
		
		<category><![CDATA[javaFX]]></category>

		<guid isPermaLink="false">http://www.pizze-ria.it/?p=43</guid>
		<description><![CDATA[The JavaFX team announced an &#8220;ask to the expert&#8221; session (august 18-22)
Here are some news:

They have plans to support CSS for skinning
The next release of the SDK will have new UI components, media controls and much more is planned for November
The JavaFX runtime will not be included in the JRE. It will be downloaded when [...]]]></description>
			<content:encoded><![CDATA[<p>The JavaFX team announced an &#8220;ask to the expert&#8221; session (august 18-22)</p>
<p>Here are some news:</p>
<ol>
<li>They have plans to support CSS for skinning</li>
<li>The next release of the SDK will have new UI components, media controls and much more is planned for November</li>
<li>The JavaFX runtime will not be included in the JRE. It will be downloaded when needed and then cached for subsequent use from Sun servers</li>
<li>They have a plan for a local persistence storage for 1.0 release. It means that a local database will be used like sqlite in Adobe AIR.</li>
</ol>
<p>You can found the full transcript <a href="http://java.sun.com/developer/community/askxprt/sessions/2008/jl0818.jsp" onclick="javascript:pageTracker._trackPageview('/outbound/article/java.sun.com');">here </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pizze-ria.it/?feed=rss2&amp;p=43</wfw:commentRss>
		</item>
		<item>
		<title>First post</title>
		<link>http://www.pizze-ria.it/?p=4</link>
		<comments>http://www.pizze-ria.it/?p=4#comments</comments>
		<pubDate>Mon, 18 Aug 2008 10:35:47 +0000</pubDate>
		<dc:creator>Lorenzo</dc:creator>
		
		<category><![CDATA[generic]]></category>

		<guid isPermaLink="false">http://www.pizze-ria.it/?p=4</guid>
		<description><![CDATA[Today, the blog www.pizze-ria.it is born.  A pizza in the RIA world ;) (kudos to Federico Zanetti for the nice idea).
I have 2 goals about this place:

Write about RIA technologies, especially on Adobe Flex/ AS3 and Sun JavaFX
Enhance my poor english, I am Italian and like a lot of Italians I speak and write [...]]]></description>
			<content:encoded><![CDATA[<p>Today, the blog <a href="http://www.pizze-ria.it" >www.pizze-ria.it</a> is born.  A pizza in the RIA world ;) (kudos to Federico Zanetti for the nice idea).</p>
<p>I have 2 goals about this place:</p>
<ul>
<li>Write about RIA technologies, especially on Adobe <a href="http://www.adobe.com/products/flex/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.adobe.com');">Flex</a>/ AS3 and Sun <a href="http://www.javafx.com/" onclick="javascript:pageTracker._trackPageview('/outbound/article/www.javafx.com');">JavaFX</a></li>
<li>Enhance my poor english, I am Italian and like a lot of Italians I speak and write poor english. Then if you read something wrong please drop me an <a href="mailto:lorenzo_at_kemen.it">email</a> :P</li>
</ul>
<p>At the moment the blog is very raw. I don&#8217;t have the time to fix it. I hope to do it in the future.</p>
<p>I installed wordpress and added just <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/" onclick="javascript:pageTracker._trackPageview('/outbound/article/wordpress.org');" target="_self">syntaxhighlighter</a> as a plugin. After that, I added javaFx support:</p>
<ul>
<li>downloaded the brush from <a href="http://coffeejolts.com/downloads/shBrushJavaFX.js" onclick="javascript:pageTracker._trackPageview('/outbound/article/coffeejolts.com');" target="_self">here</a> (tks <a href="http://coffeejolts.com/site/2008/07/javafx-brush-for-syntax-highli.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/coffeejolts.com');">coffeejolts.com</a>)</li>
<li>put it on your syntaxhighlighter plugin directory (i.e. /wp-content/plugins/google-syntax-highlighter/Scripts)</li>
<li>edited google_syntax_highlighter.php and insert this line:</li>
</ul>
<p>&lt;script class=&#8221;javascript&#8221; src=&#8221;&lt;?php echo $current_path; ?&gt;Scripts/shBrushJavaFX.js&#8221;&gt;&lt;/script&gt;</p>
<ul>
<li>now you&#8217;ll have a basic javafx color syntax highlighter in your blog too.</li>
</ul>
<pre class="jfx">/*
 * Main.fx
 *
 * Created on Aug 8, 2008, 11:33:52 AM
 */

package syntaxhighlighter;

import javafx.ext.swing.Frame;
import javafx.ext.swing.Canvas;
import javafx.scene.text.Text;
import javafx.scene.Font;
import javafx.scene.FontStyle;

Frame {
    title: "Color syntac"
    width: 300
    height: 300
    closeAction: function() { java.lang.System.exit( 0 );
    }
    visible: true

    menus: [  ]

    content: Canvas {
        content: [
            Text {
                font: Font {
                    size: 24
                    style: FontStyle.PLAIN
                }
                x: 10, y: 30
                content: "Syntax high lighter"
            }]
    }
}</pre>
<p>Now, wordpress is ready. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pizze-ria.it/?feed=rss2&amp;p=4</wfw:commentRss>
		</item>
	</channel>
</rss>
