Author: hqm
Date: 2007-11-26 14:12:24 -0800 (Mon, 26 Nov 2007)
New Revision: 7372
Modified:
openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
Log:
Change 20071126-hqm-0 by [EMAIL PROTECTED] on 2007-11-26 16:14:28 EST
in /cygdrive/c/users/hqm/openlaszlo/trunk/WEB-INF/lps/schema
for http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/schema
Summary: allow <data> tag as child of dataset class
New Features:
Bugs Fixed: LPP-5147
Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer:
Documentation:
Release Notes:
Details:
Data can be included inline in a subclass of dataset if the "datafromchild"
attribute is
set to true
<canvas debug="true" proxied="true" >
<class name="mydataset" extends="dataset" />
<mydataset name="ds" src="test.xml" request="true"/>
<text datapath="ds:/article/title/text()" />
<mydataset name="ds2" datafromchild="true">
<data><article><title>dog</title></article></data>
</mydataset>
<text x="400" datapath="ds2:/article/title/text()" />
</canvas>
modified lfc.lzx to allow <dataset> and subclasses to include <data> tag
Tests:
The test case in the bug report
Modified: openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx 2007-11-26 21:16:42 UTC (rev
7371)
+++ openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx 2007-11-26 22:12:24 UTC (rev
7372)
@@ -408,9 +408,14 @@
<event name="onerror" />
<!-- The ontimeout event is recevied when a request times out -->
<event name="ontimeout" />
-
+
<!-- HTTP request method = post | get -->
<attribute name="querytype" type="string" value="GET"
enum="post|get|put|delete|POST|GET|PUT|DELETE" />
+
+ <containsElements>
+ <element>data</element>
+ </containsElements>
+
</interface>
<interface name="datapointer" extends="node">
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins