[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[laszlo-dev] Error when root element of included file extends view
|
Dear
All,
I'm trying to use
the <include> directive to split my app into manageable
files.
My project looks
like this:
---------------------------------------------------
canvas.lzx:
<?
xml version="1.0" encoding="UTF-8" ?>
<canvas>
<include href="content.lzx"/>
</canvas>
---------------------------------------------------
content.lzx:
<?
xml version="1.0"
encoding="UTF-8" ?>
<
vbox/>
---------------------------------------------------
When I
save the "content.lzx" file in the Laszlo IDE, I get an error dialog saying
"Save Failed:unexpected root element: vbox". If I click OK, the dialog goes away
and the file seems to have been saved anyway. The app seems to run OK
too.
If I
change "content.lzx" to have <view/> as the root element, I don't get the
error. It violates the Liskov Substitution Principle that you can have a view as
the root but not a vbox, which is a subclass of view. Is this a bug in the
IDE or a quirk of OpenLaszlo itself? It's only a minor annoyance, but it would
be good to have it resolved.
FWIW,
I'm using Eclipse 3.1.2 Build M20060118-1600, Java 1.5.0_04, plugin
v0.1.0b