<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Integrating Flex with JBoss Seam - Flamingo Goodies</title>
	<atom:link href="http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/</link>
	<description>Let's talk about Flex</description>
	<pubDate>Sun, 20 May 2012 17:21:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: darius</title>
		<link>http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/#comment-9</link>
		<dc:creator>darius</dc:creator>
		<pubDate>Tue, 17 Jun 2008 07:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexdevil.com/blog/?p=9#comment-9</guid>
		<description>@ paolo

Unfortunately your code didn't come through.

&lt;code&gt;SeamBinding&lt;/code&gt; is meant to synchronize two java/flex data objects. It is not meant to do function calls. You are right, if you want to do a call with a parameter your best shot would be to use &lt;code&gt;lastResult&lt;/code&gt;. After each call you need to store the result in some variable because &lt;code&gt;lastResult&lt;/code&gt; always shows the result from the latest server call. To make it short, I would set the &lt;code&gt;result&lt;/code&gt; parameter on the &lt;code&gt;RemoteObject&lt;/code&gt; to call a function that saves the return value (maybe push it on an array?)</description>
		<content:encoded><![CDATA[<p>@ paolo</p>
<p>Unfortunately your code didn&#8217;t come through.</p>
<p><code>SeamBinding</code> is meant to synchronize two java/flex data objects. It is not meant to do function calls. You are right, if you want to do a call with a parameter your best shot would be to use <code>lastResult</code>. After each call you need to store the result in some variable because <code>lastResult</code> always shows the result from the latest server call. To make it short, I would set the <code>result</code> parameter on the <code>RemoteObject</code> to call a function that saves the return value (maybe push it on an array?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paolo</title>
		<link>http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/#comment-7</link>
		<dc:creator>paolo</dc:creator>
		<pubDate>Mon, 16 Jun 2008 11:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexdevil.com/blog/?p=9#comment-7</guid>
		<description>what to do if I want to have two components with same mapping and need to bind them with different bean parameters? I always have the same result (the last one executed)! I mean, having something similar to:







the reason of my issue is that my bean takes a parameter, on which it returns a different value. Since it seems that the only way to use flamingo is this "lastResult" thing, I always get both name and surname fields stuck to the name or the surname, depending on which is called later. How may I solve this?</description>
		<content:encoded><![CDATA[<p>what to do if I want to have two components with same mapping and need to bind them with different bean parameters? I always have the same result (the last one executed)! I mean, having something similar to:</p>
<p>the reason of my issue is that my bean takes a parameter, on which it returns a different value. Since it seems that the only way to use flamingo is this &#8220;lastResult&#8221; thing, I always get both name and surname fields stuck to the name or the surname, depending on which is called later. How may I solve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darius</title>
		<link>http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/#comment-6</link>
		<dc:creator>darius</dc:creator>
		<pubDate>Thu, 12 Jun 2008 18:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexdevil.com/blog/?p=9#comment-6</guid>
		<description>@ Jason

My guess is that you are passing in a field that actionscript doesn't understand. I only had some problems before when mapping a long (since there is no long in actionscript). Are you able to get the object in javascript (take a look at view/doSomething.xhtml on the demo code to see how to get the object in javascript)? Also, what are you using in Flex to make the remote call? Is it a Flamingo specific component or is it a RemoteObject?</description>
		<content:encoded><![CDATA[<p>@ Jason</p>
<p>My guess is that you are passing in a field that actionscript doesn&#8217;t understand. I only had some problems before when mapping a long (since there is no long in actionscript). Are you able to get the object in javascript (take a look at view/doSomething.xhtml on the demo code to see how to get the object in javascript)? Also, what are you using in Flex to make the remote call? Is it a Flamingo specific component or is it a RemoteObject?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.flexdevil.com/blog/2008/05/integrating-flex-with-jboss-seam-flamingo-goodies/#comment-5</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 11 Jun 2008 23:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexdevil.com/blog/?p=9#comment-5</guid>
		<description>Hey there!

I'm actually (attempting) to use Flamingo with my Flex app because of this series of blog entries, it sounds very promising. I'm trying to convert my Flex apps backend from RoR to Seam, and so far it's all been a learning curve. Anyway.

I've got Flamingo mostly working, but something I can't quite find an example of is doing a bean call like:

getPlayer(id)

and have it return a mapped Player object.. I've done the whole thing with having a proxy object on the Flex side with the proper metadata, etc - the Seam side works fine, it finds the object and hucks it over the connection, but then Flex chokes with a Type Coercion error - it seems that the thing it's getting back is an AsyncToken - you have this issue? Your example does it a little differently, so I can't really apply what you are doing.

Anyway, if you've got a word of wisdom or two to share, I'd love to hear em.

Cheers,
Jason</description>
		<content:encoded><![CDATA[<p>Hey there!</p>
<p>I&#8217;m actually (attempting) to use Flamingo with my Flex app because of this series of blog entries, it sounds very promising. I&#8217;m trying to convert my Flex apps backend from RoR to Seam, and so far it&#8217;s all been a learning curve. Anyway.</p>
<p>I&#8217;ve got Flamingo mostly working, but something I can&#8217;t quite find an example of is doing a bean call like:</p>
<p>getPlayer(id)</p>
<p>and have it return a mapped Player object.. I&#8217;ve done the whole thing with having a proxy object on the Flex side with the proper metadata, etc - the Seam side works fine, it finds the object and hucks it over the connection, but then Flex chokes with a Type Coercion error - it seems that the thing it&#8217;s getting back is an AsyncToken - you have this issue? Your example does it a little differently, so I can&#8217;t really apply what you are doing.</p>
<p>Anyway, if you&#8217;ve got a word of wisdom or two to share, I&#8217;d love to hear em.</p>
<p>Cheers,<br />
Jason</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.145 seconds -->

