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>
+              &lt;dataset name="navdata"&gt;
+                &lt;navmenu&gt;
+                  &lt;section /&gt;
+                &lt;/navmenu&gt;
+              &lt;/dataset&gt;
+
+
+              &lt;view x="10" y="10" layout="axis: x; spacing: 10"&gt;
+                &lt;basetree width="160" height="20" bgcolor="#FFFFFF" 
datapath="navdata:/navmenu" /&gt;
+              &lt;/view&gt;
+              </programlisting>
+
+              It needs to be rewritten to have a relative datapath in the 
recursively expanding
+              tree node. 
+
+              <programlisting>
+                &lt;basetree width="160" height="20" bgcolor="#FFFFFF" 
datapath="navdata:/navmenu"&gt;
+                  &lt;basetree width="160" height="20" bgcolor="#FFFFFF" 
datapath="*" /&gt;
+                &lt;/basetree&gt;
+              </programlisting>
+            </p>
+
+
             <example title="Basetree subclass with echoed text node">
             &lt;canvas width="200" height="200"&gt;
               &lt;include href="base/basetree.lzx"/&gt;


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to