Author: hqm
Date: 2008-02-28 12:21:16 -0800 (Thu, 28 Feb 2008)
New Revision: 8130
Modified:
openlaszlo/trunk/lps/components/base/basetree.lzx
Log:
Change 20080228-hqm-h by [EMAIL PROTECTED] on 2008-02-28 15:20:08 EST
in /Users/hqm/openlaszlo/trunk/lps/components
for http://svn.openlaszlo.org/openlaszlo/trunk/lps/components
Summary: add additional doc for basetree
New Features:
Bugs Fixed: LPP_4603
Technical Reviewer: liorio
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Add doc about screw case with absolute datapaths
Tests:
Modified: openlaszlo/trunk/lps/components/base/basetree.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetree.lzx 2008-02-28 19:30:35 UTC
(rev 8129)
+++ openlaszlo/trunk/lps/components/base/basetree.lzx 2008-02-28 20:21:16 UTC
(rev 8130)
@@ -675,6 +675,38 @@
<img src="images/basetree/basetree-diagram.png"/>
+ <p>
+ When the basetree expands recursively, the datapath must be
+ a relative reference to the dataset. If an absolute
+ refrence is used, the same nodes would be selected over
+ and over forever, resulting in and endless loop.
+
+ For example, this will hang in an endless loop:
+
+ <programlisting>
+ <dataset name="navdata">
+ <navmenu>
+ <section />
+ </navmenu>
+ </dataset>
+
+
+ <view x="10" y="10" layout="axis: x; spacing: 10">
+ <basetree width="160" height="20" bgcolor="#FFFFFF"
datapath="navdata:/navmenu" />
+ </view>
+ </programlisting>
+
+ It needs to be rewritten to have a relative datapath in the
recursively expanding
+ tree node.
+
+ <programlisting>
+ <basetree width="160" height="20" bgcolor="#FFFFFF"
datapath="navdata:/navmenu">
+ <basetree width="160" height="20" bgcolor="#FFFFFF"
datapath="*" />
+ </basetree>
+ </programlisting>
+ </p>
+
+
<example title="Basetree subclass with echoed text node">
<canvas width="200" height="200">
<include href="base/basetree.lzx"/>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins