[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:15:02 PDT 2007


To be clear, I meant that we should make the  3.4 method of declaring
dataset  methods/handlers behavior be supported and not generate
warnings....



On 10/5/07, Henry Minsky <henry.minsky at gmail.com> wrote:
> 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
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com


More information about the Laszlo-dev mailing list