[Laszlo-user] proposal for new behavior of compiler when declaring child nodes with same name as attributes
Henry Minsky
hminsky at laszlosystems.com
Wed May 28 10:17:59 PDT 2008
This is a proposal in response to this bug, which came up when someone named
a child view "layout", and got
unexpected results in a view.
http://jira.openlaszlo.org/jira/browse/LPP-5799
The current compiler behavior is that it will allow you to declare a child
with the same name as an attribute,
as long as the attribute has a null default value.
This proposal is that we add a new LZX attribute type, "node", which you can
use to declare that
an attribute name can have the same name as child node.
So for example you could have
<class name="myclass">
<attribute name="titleview" type="node"/>
<handler name="oninit">
</class>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080528/f5de2a1c/attachment.html
More information about the Laszlo-user
mailing list