<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Running into OpenLaszlo Limitations</title>
	<atom:link href="http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/</link>
	<description>Cuppalicious coding!</description>
	<lastBuildDate>Thu, 12 Aug 2010 13:37:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Héryk Julien</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-110</link>
		<dc:creator>Héryk Julien</dc:creator>
		<pubDate>Tue, 11 Mar 2008 04:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-110</guid>
		<description>&lt;strong&gt;Stuck between a rock and a hard place&lt;/strong&gt;

Thanks for the rapid response!!! 
This is a major drawback in the usability of OpenLaszlo in designing XML driven applications. I spent several weeks learning and designing a Laszlo XML driven FGDC metadata editor... and let’s just say that I’m very disappointed with this outcome! Isn’t Laszlo’s strength supposed to be XML driven applications??!!!! Dop!

I’ll follow your suggestion and try to implement a solution on the server side (Apache Cocoon &lt;a href=&quot;http://cocoon.apache.org/)&quot; rel=&quot;nofollow&quot;&gt;http://cocoon.apache.org/)&lt;/a&gt; to decode Laszlo&#039;s xml Post.

I posted my question on the Laszlo forum here:  &lt;a href=&quot;http://forum.openlaszlo.org/showthread.php?p=37241#post37241&quot; rel=&quot;nofollow&quot;&gt;http://forum.openlaszlo.org/showthread.php?p=37241#post37241&lt;/a&gt;

I hope this will be fixed in a near future!
Cheers
Héryk

</description>
		<content:encoded><![CDATA[<p><strong>Stuck between a rock and a hard place</strong></p>
<p>Thanks for the rapid response!!! <br />
This is a major drawback in the usability of OpenLaszlo in designing XML driven applications. I spent several weeks learning and designing a Laszlo XML driven FGDC metadata editor&#8230; and let’s just say that I’m very disappointed with this outcome! Isn’t Laszlo’s strength supposed to be XML driven applications??!!!! Dop!</p>
<p>I’ll follow your suggestion and try to implement a solution on the server side (Apache Cocoon <a href="http://cocoon.apache.org/)" rel="nofollow">http://cocoon.apache.org/)</a> to decode Laszlo&#8217;s xml Post.</p>
<p>I posted my question on the Laszlo forum here:  <a href="http://forum.openlaszlo.org/showthread.php?p=37241#post37241" rel="nofollow">http://forum.openlaszlo.org/showthread.php?p=37241#post37241</a></p>
<p>I hope this will be fixed in a near future!<br />
Cheers<br />
Héryk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Urquhart</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-109</link>
		<dc:creator>James Urquhart</dc:creator>
		<pubDate>Sat, 08 Mar 2008 04:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-109</guid>
		<description>Héryk,

I&#039;ve not played about with OpenLaszlo for months, but i&#039;ll see what i can recall.

If you take a look at one of my other posts, specifically &lt;a href=&quot;http://www.cuppadev.co.uk/2007/08/08/openlaszlo-version-of-the-previous-flex-example/&quot; rel=&quot;nofollow&quot;&gt;http://www.cuppadev.co.uk/2007/08/08/openlaszlo-version-of-the-previous-flex-example/&lt;/a&gt; , then i eventually figured out that the &quot;lzpostbody&quot; parameter was the key.

The code i ended up with is &lt;a href=&quot;http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt&quot; rel=&quot;nofollow&quot;&gt;http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt&lt;/a&gt; .

Keep in mine though that if you are running your app in SOLO mode, then in all likelihood your POST data will automagically be escaped. My solution to that snag here -&gt; &lt;a href=&quot;http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/&quot; rel=&quot;nofollow&quot;&gt;http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/&lt;/a&gt; .

Good luck. :)
</description>
		<content:encoded><![CDATA[<p>Héryk,</p>
<p>I&#8217;ve not played about with OpenLaszlo for months, but i&#8217;ll see what i can recall.</p>
<p>If you take a look at one of my other posts, specifically <a href="http://www.cuppadev.co.uk/2007/08/08/openlaszlo-version-of-the-previous-flex-example/" rel="nofollow">http://www.cuppadev.co.uk/2007/08/08/openlaszlo-version-of-the-previous-flex-example/</a> , then i eventually figured out that the &#8220;lzpostbody&#8221; parameter was the key.</p>
<p>The code i ended up with is <a href="http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt" rel="nofollow">http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt</a> .</p>
<p>Keep in mine though that if you are running your app in SOLO mode, then in all likelihood your POST data will automagically be escaped. My solution to that snag here -> <a href="http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/" rel="nofollow">http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/</a> .</p>
<p>Good luck. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Héryk Julien</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-108</link>
		<dc:creator>Héryk Julien</dc:creator>
		<pubDate>Sat, 08 Mar 2008 03:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-108</guid>
		<description>Hi James,
I tried the setQueryParam() in LZ 3.3.3 and 4.0.10 to post data and it doesn&#039;t work ! I also tried the setPostBody() in LZ 4.0.10 and it also failed! You seem to have made it work... could you post an example?

FYI, here is my dataset…

&lt;i&gt;&lt;dataset name=&quot;dsSendData&quot; src=&quot;$once{&#039;http://localhost:8080/cocoon/devHeryk/metadata/sendMeta/&#039; + LzBrowser.getInitArg(&#039;getMeta&#039;) + &#039;.xml&#039;}&quot; request=&quot;false&quot; type=&quot;http&quot;/&gt;&lt;/i&gt;

and my 2 attempts with setQueryParam()…

&lt;i&gt;&lt;method name=&quot;sendData&quot; args=&quot;action&quot;&gt;
var dp =canvas.datasets.meta.getPointer();
var d =canvas.datasets.dsSendData;
dp.selectChild();
var sRequest = dp.serialize();
&lt;strong&gt;d.setQueryParam(&quot;lzpostbody&quot;,sRequest);&lt;/strong&gt;
d.setQueryType(&quot;POST&quot;);
d.doRequest();
&lt;/method&gt;&lt;/i&gt;

and setPostBody()…

&lt;i&gt;&lt;method name=&quot;sendData&quot; args=&quot;action&quot;&gt;
var dp =canvas.datasets.meta.getPointer();
var d =canvas.datasets.dsSendData;
dp.selectChild();
var sRequest = dp.serialize();
&lt;strong&gt;d.setPostBody(sRequest); &lt;/strong&gt;
d.setQueryType(&quot;POST&quot;);
d.doRequest();
&lt;/method&gt;&lt;/i&gt;

Thanks
Héryk

</description>
		<content:encoded><![CDATA[<p>Hi James,<br />
I tried the setQueryParam() in LZ 3.3.3 and 4.0.10 to post data and it doesn&#8217;t work ! I also tried the setPostBody() in LZ 4.0.10 and it also failed! You seem to have made it work&#8230; could you post an example?</p>
<p>FYI, here is my dataset…</p>
<p><i>&lt;dataset name=&#8221;dsSendData&#8221; src=&#8221;$once{&#8216;http://localhost:8080/cocoon/devHeryk/metadata/sendMeta/&#8217; + LzBrowser.getInitArg(&#8216;getMeta&#8217;) + &#8216;.xml&#8217;}&#8221; request=&#8221;false&#8221; type=&#8221;http&#8221;/&gt;</i></p>
<p>and my 2 attempts with setQueryParam()…</p>
<p><i>&lt;method name=&#8221;sendData&#8221; args=&#8221;action&#8221;&gt;<br />
var dp =canvas.datasets.meta.getPointer();<br />
var d =canvas.datasets.dsSendData;<br />
dp.selectChild();<br />
var sRequest = dp.serialize();<br />
<strong>d.setQueryParam(&#8220;lzpostbody&#8221;,sRequest);</strong><br />
d.setQueryType(&#8220;POST&#8221;);<br />
d.doRequest();<br />
&lt;/method&gt;</i></p>
<p>and setPostBody()…</p>
<p><i>&lt;method name=&#8221;sendData&#8221; args=&#8221;action&#8221;&gt;<br />
var dp =canvas.datasets.meta.getPointer();<br />
var d =canvas.datasets.dsSendData;<br />
dp.selectChild();<br />
var sRequest = dp.serialize();<br />
<strong>d.setPostBody(sRequest); </strong><br />
d.setQueryType(&#8220;POST&#8221;);<br />
d.doRequest();<br />
&lt;/method&gt;</i></p>
<p>Thanks<br />
Héryk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Urquhart</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-105</link>
		<dc:creator>James Urquhart</dc:creator>
		<pubDate>Mon, 06 Aug 2007 04:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-105</guid>
		<description>Henry,

Thanks very much for the suggestion. It seems to work rather nicely. :)

Regards,

James
</description>
		<content:encoded><![CDATA[<p>Henry,</p>
<p>Thanks very much for the suggestion. It seems to work rather nicely. :)</p>
<p>Regards,</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Minsky</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-106</link>
		<dc:creator>Henry Minsky</dc:creator>
		<pubDate>Mon, 06 Aug 2007 04:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-106</guid>
		<description>There is a single magic query arg named &quot;lzpostbody&quot;, which if you set it, will be sent as the literal POST body, without form-encoding or anything.

In an upcoming release, this will be accessed via a new API on dataset called setPostBody().
</description>
		<content:encoded><![CDATA[<p>There is a single magic query arg named &#8220;lzpostbody&#8221;, which if you set it, will be sent as the literal POST body, without form-encoding or anything.</p>
<p>In an upcoming release, this will be accessed via a new API on dataset called setPostBody().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raju Bitter</title>
		<link>http://www.cuppadev.co.uk/dev/running-into-openlaszlo-limitations/comment-page-1/#comment-107</link>
		<dc:creator>Raju Bitter</dc:creator>
		<pubDate>Mon, 06 Aug 2007 04:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://crm.cuppadev.co.uk/?p=102#comment-107</guid>
		<description>Here&#039;s an example code on how to post an XML dataset as a String to a server. Hope that helps...





a
b
cc








var xmlString = canvas.datasets[&#039;theData&#039;].serialize();
datasetForSending.setQueryParam(&quot;xml&quot;, xmlString);
datasetForSending.setQueryType(&quot;POST&quot;);
datasetForSending.doRequest();



</description>
		<content:encoded><![CDATA[<p>Here&#8217;s an example code on how to post an XML dataset as a String to a server. Hope that helps&#8230;</p>
<p>a<br />
b<br />
cc</p>
<p>var xmlString = canvas.datasets['theData'].serialize();<br />
datasetForSending.setQueryParam(&#8220;xml&#8221;, xmlString);<br />
datasetForSending.setQueryType(&#8220;POST&#8221;);<br />
datasetForSending.doRequest();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
