<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>CuppaDev - Latest Comments in Running into OpenLaszlo Limitations</title><link>http://cuppadev.disqus.com/</link><description></description><language>en</language><lastBuildDate>Tue, 11 Mar 2008 00:16:06 -0000</lastBuildDate><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429563</link><description>&lt;strong&gt;Stuck between a rock and a hard place&lt;/strong&gt;&lt;br&gt;&lt;br&gt;Thanks for the rapid response!!! &lt;br&gt;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!&lt;br&gt;&lt;br&gt;I’ll follow your suggestion and try to implement a solution on the server side (Apache Cocoon &lt;a href="http://cocoon.apache.org/)" rel="nofollow"&gt;http://cocoon.apache.org/)&lt;/a&gt; to decode Laszlo's xml Post.&lt;br&gt;&lt;br&gt;I posted my question on the Laszlo forum here:  &lt;a href="http://forum.openlaszlo.org/showthread.php?p=37241#post37241" rel="nofollow"&gt;http://forum.openlaszlo.org/showthread.php?p=37241#post37241&lt;/a&gt;&lt;br&gt;&lt;br&gt;I hope this will be fixed in a near future!&lt;br&gt;Cheers&lt;br&gt;Héryk</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Héryk Julien</dc:creator><pubDate>Tue, 11 Mar 2008 00:16:06 -0000</pubDate></item><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429562</link><description>Héryk,&lt;br&gt;&lt;br&gt;I've not played about with OpenLaszlo for months, but i'll see what i can recall.&lt;br&gt;&lt;br&gt;If you take a look at one of my other posts, specifically &lt;a href="http://www.cuppadev.co.uk/2007/08/08/openlaszlo-version-of-the-previous-flex-example/" rel="nofollow"&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 "lzpostbody" parameter was the key.&lt;br&gt;&lt;br&gt;The code i ended up with is &lt;a href="http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt" rel="nofollow"&gt;http://www.cuppadev.co.uk/assets/2007/8/8/manage_test.txt&lt;/a&gt; .&lt;br&gt;&lt;br&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 -&amp;gt; &lt;a href="http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/" rel="nofollow"&gt;http://www.cuppadev.co.uk/2007/08/09/openlaszlo-xml-workaround/&lt;/a&gt; .&lt;br&gt;&lt;br&gt;Good luck. :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Fri, 07 Mar 2008 23:45:32 -0000</pubDate></item><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429561</link><description>Hi James,&lt;br&gt;I tried the setQueryParam() in LZ 3.3.3 and 4.0.10 to post data and it doesn'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?&lt;br&gt;&lt;br&gt;FYI, here is my dataset…&lt;br&gt;&lt;br&gt;&lt;i&gt;&amp;lt;dataset name="dsSendData" src="$once{'http://localhost:8080/cocoon/devHeryk/metadata/sendMeta/' + LzBrowser.getInitArg('getMeta') + '.xml'}" request="false" type="http"/&amp;gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;and my 2 attempts with setQueryParam()…&lt;br&gt;&lt;br&gt;&lt;i&gt;&amp;lt;method name="sendData" args="action"&amp;gt;&lt;br&gt;var dp =canvas.datasets.meta.getPointer();&lt;br&gt;var d =canvas.datasets.dsSendData;&lt;br&gt;dp.selectChild();&lt;br&gt;var sRequest = dp.serialize();&lt;br&gt;&lt;strong&gt;d.setQueryParam("lzpostbody",sRequest);&lt;/strong&gt;&lt;br&gt;d.setQueryType("POST");&lt;br&gt;d.doRequest();&lt;br&gt;&amp;lt;/method&amp;gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;and setPostBody()…&lt;br&gt;&lt;br&gt;&lt;i&gt;&amp;lt;method name="sendData" args="action"&amp;gt;&lt;br&gt;var dp =canvas.datasets.meta.getPointer();&lt;br&gt;var d =canvas.datasets.dsSendData;&lt;br&gt;dp.selectChild();&lt;br&gt;var sRequest = dp.serialize();&lt;br&gt;&lt;strong&gt;d.setPostBody(sRequest); &lt;/strong&gt;&lt;br&gt;d.setQueryType("POST");&lt;br&gt;d.doRequest();&lt;br&gt;&amp;lt;/method&amp;gt;&lt;/i&gt;&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Héryk</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Héryk Julien</dc:creator><pubDate>Fri, 07 Mar 2008 22:53:42 -0000</pubDate></item><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429558</link><description>Henry,&lt;br&gt;&lt;br&gt;Thanks very much for the suggestion. It seems to work rather nicely. :)&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;&lt;br&gt;James</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Mon, 06 Aug 2007 00:42:00 -0000</pubDate></item><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429559</link><description>There is a single magic query arg named "lzpostbody", which if you set it, will be sent as the literal POST body, without form-encoding or anything.&lt;br&gt;&lt;br&gt;In an upcoming release, this will be accessed via a new API on dataset called setPostBody().</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Henry Minsky</dc:creator><pubDate>Mon, 06 Aug 2007 00:42:00 -0000</pubDate></item><item><title>Re: Running into OpenLaszlo Limitations</title><link>http://www.cuppadev.co.uk/oldbrew/running-into-openlaszlo-limitations/#comment-2429560</link><description>Here's an example code on how to post an XML dataset as a String to a server. Hope that helps...&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;a&lt;br&gt;b&lt;br&gt;cc&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;var xmlString = canvas.datasets['theData'].serialize();&lt;br&gt;datasetForSending.setQueryParam("xml", xmlString);&lt;br&gt;datasetForSending.setQueryType("POST");&lt;br&gt;datasetForSending.doRequest();</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Raju Bitter</dc:creator><pubDate>Mon, 06 Aug 2007 00:42:00 -0000</pubDate></item></channel></rss>