[Laszlo-dev] incompatibility between 4.0 and 3.x with respect to dataset behavior
Henry Minsky
henry.minsky at gmail.com
Fri Oct 5 15:13:22 PDT 2007
I didn't realize that in LPS 3.x, although you get compiler warnings,
it works to add methods and handlers to <dataset> tags.
e.g., you can say
<dataset name="myds" type="http" >
<method event="ondata">
Debug.write("ondata fired", this);
</method>
</dataset>
And while you get this warning
ondata.lzx:4:31: element "method" not allowed in this context. Check
whether it is spelled correctly, and whether a class with this name
exists.
the handler is installed on the dataset at runtime.
I broke this behavior in 4.0.5; we now treat the dataset
content as literal XML data, unless the new "datafromchild" attribute
is set to true.
But I think we need to go back to the 3.4 semantics, even if they
weren't offically documented and generated warnings, where if you
have a non-null 'src' attribute or
a type="http" or type="soap", that the dataset body is treated like
normal LZX code, and only in the case where you have no 'type'
attribute, and no 'src' attribute, is the body treated
like XML literal data.
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list