Author: lou
Date: 2008-02-27 06:34:33 -0800 (Wed, 27 Feb 2008)
New Revision: 8113
Modified:
openlaszlo/trunk/lps/components/base/basetree.lzx
openlaszlo/trunk/lps/components/lz/tree.lzx
Log:
Change 20080227-lou-m by [EMAIL PROTECTED] on 2008-02-27 10:27:54 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Document that basetree needs a relative, not absolute datapath
Bugs Fixed: LPP-4603
Technical Reviewer: henry
QA Reviewer: (pending)
Doc Reviewer: (pending)
Details:
This was already documented in the reference page for <tree>, but the
markup was wrong, so the example code did not show up. Also, the
code was wrong (the nested <tree> was missing the /).
Fixed markup and example, and duplicated doc in the <basetree> page,
which is what the bug was reported against.
Tests: visual verify
Modified: openlaszlo/trunk/lps/components/base/basetree.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basetree.lzx 2008-02-27 14:32:34 UTC
(rev 8112)
+++ openlaszlo/trunk/lps/components/base/basetree.lzx 2008-02-27 14:34:33 UTC
(rev 8113)
@@ -655,6 +655,17 @@
should be placed in <varname>item</varname>. You can use
<code>placement="item"</code>. The <varname>children</varname>
view is
the defaultplacement for basetree.</p>
+
+ <p>Note that a data replicated tree passes its XPath
+ <!--link--> down to its subtrees, so avoid specifying an
absolute XPath
+ such as "<code>mydataset:/*</code>" or your tree will
infinite
+ loop. Instead, use a relative XPath:</p>
+
+ <programlisting>
+ <tree datapath="mydataset:/" showroot="false">
+ <tree datapath="*" />
+ </tree>
+ </programlisting>
<p>The following diagram demonstrates how <varname>item</varname>
and
<varname>children</varname> are associated in tree. Since
@@ -708,7 +719,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/trunk/lps/components/lz/tree.lzx
===================================================================
--- openlaszlo/trunk/lps/components/lz/tree.lzx 2008-02-27 14:32:34 UTC (rev
8112)
+++ openlaszlo/trunk/lps/components/lz/tree.lzx 2008-02-27 14:34:33 UTC (rev
8113)
@@ -143,17 +143,17 @@
specified lexically or through data replication
<!--link-->.</p>
- <p>Note that a data replicated tree passes its XPath
- <!--link--> down to its subtrees, so avoid specifying an XPath
- such as "<code>mydataset:/*</code>" or your tree will infinite
- loop. Instead, do the following:</p>
+ <p>Note that a data replicated tree passes its XPath
+ <!--link--> down to its subtrees, so avoid specifying an
absolute XPath
+ such as "<code>mydataset:/*</code>" or your tree will
infinite
+ loop. Instead, use a relative XPath:</p>
+
+ <programlisting>
+ <tree datapath="mydataset:/" showroot="false">
+ <tree datapath="*" />
+ </tree>
+ </programlisting>
- <example class="program" executable="false" extract="false">
- <tree datapath="mydataset:/" showroot="false">
- <tree datapath="*">
- </tree>
- </example>
-
<p>Each resource, if specified, should have three states. The
expander resource
should have an open (frame 1), closed (frame 2), and transparent
(frame 3)
state. The icon resource should have similar frames. See the
default resources
@@ -212,7 +212,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins