Not sure why you faced this problem.
I ran your code and it worked fine in my case.
 
 
I am using Laszlo 3.3.1
 
 
here's the code of my lzx file:
 
<?xml version="1.0" encoding="UTF-8" ?>
<canvas width="760" height="600" debug="false">
<dataset name="dsgoallist">
     <goals>
        <goal id="12" active="true" description="asdfasdf" isleaf="false">
            <goal id="13" active="true" description="asdfasdfs" isleaf="true">
            </goal>
        </goal>
    </goals>
</dataset>
<view width="100%" height="100%" >
     <tree datapath="dsgoallist:/goals" icon="null" showroot="false">
         <tree datapath="goal" icon="null" text="$path{'@description'}" 
              isleaf="$path{'@isleaf'}">
         </tree>
     </tree>
</view>
</canvas>
 

 
 
----- Original Message -----
From: "Ron Lancaster" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, August 01, 2006 8:42 AM
Subject: [Laszlo-user] Tree Trouble - Missing Child Trees

> Help requested.
>
> I have a tree defined as such:
> <tree datapath="dsgoallist:/goals" icon="null" showroot="false">
> <tree datapath="goal" icon="null" text="
$path{'@description'}" 
> isleaf="
$path{'@isleaf'}">
> </tree>
> </tree>
>
> When I have the following XML:
> <goals>
> <goal id="12" active="true" description="asdfasdf" isleaf="false">
> <goal id="13" active="true" description="asdfasdfs" isleaf="true">
> </goal>
> </goal>
> </goals>
>
> Then only one node is displayed (note it should be displaying a child 
> node):
>


>
> However, if at any point in time, if I refresh the datasource with an 
> XML document that defines two top-level goal nodes (not root, but one 
> level down) like the following XML:
>
> <goals>
> <goal id="4" active="true" description="Vsiion" isleaf="false">
> <goal id="9" active="true" description="adsf" isleaf="true">
> </goal>
> <goal id="11" active="true" description="asdfasdf" isleaf="true">
> </goal>
> <goal id="5" active="true" description="avu" isleaf="true">
> </goal>
> </goal>
> <goal id="14" active="true" description="zxcv" isleaf="false">
> <goal id="15" active="true" description="zxcvsdaf" isleaf="true">
> </goal>
> </goal>
> </goals>
>
> then it displays it correctly:
>


>
> and then correctly displays the nodes when the original XML is 
> refreshed:
>


>
> Any ideas on what the problem is?
>
> Sincerely,
> Ron Lancaster
>
>


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

Attachment: tree.png
Description: PNG image

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

Reply via email to