Hi,

I'm working with s:tree tag, but it not working for me.

I have this code in my jsp

...
        <script type="text/javascript">
            dojo.even.topic.subscribe("treeSelected", function(e){
                alert("The id is:" + e.node.widgetId);
            });

      </script>
...
                     <s:tree id="contentTree"
                            name="contentTree"
                            theme = "ajax"
                            rootNode="#session.baremoNode"
                            childCollectionProperty="children"
                            nodeIdProperty="id"
                            nodeTitleProperty="name"
                            treeSelectedTopic="treeSelected"
                            treeCollapsedTopic="treeCollapsed"
                            treeExpandedTopic="treeExpanded">
                        </s:tree>

I have loaded a baremoNode object in my action class, and I can view the
tree, but when I do click over nodes, I can't view the alert message. The
nodes work fine (collapse and expand)

Any idea?

Thanks.

Reply via email to