struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narayana S" <narayanas...@gmail.com>
Subject Re: Tree Control events problem..
Date Fri, 08 Aug 2008 04:23:47 GMT
Did any one see this mail ? :(

On Thu, Aug 7, 2008 at 12:52 PM, Narayana S <narayanasgs1@gmail.com> wrote:

> Hi,
>
>         in my project i need to use a tree control, i have started looking
> at tree tag of struts, but though i wrote some event handle, it is not at
> all executing any events. he is the part of code...
>
> <head>
>  <title>Showcase - UI Tag Example - Tree Example (Static)</title>
>  <s:head theme="ajax" debug="true"  />
>  </head>
>  <body>
>  *<script>
>      function treeNodeSelected(nodeId) {
>          alert("Hi");
>      }
>      dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected");
>  </script>*
>
>
>  <div style="float:left; margin-right: 50px;">
>  <s:tree label="parent" id="parentId" theme="ajax"
> treeSelectedTopic="treeSelected">
>      <s:treenode theme="ajax" label="child1" id="child1Id">
>          <s:treenode theme="ajax" label="grandchild1" id="grandchild1Id"/>
>          <s:treenode theme="ajax" label="grandchild2" id="grandchild2Id"/>
>          <s:treenode theme="ajax" label="grandchild3" id="grandchild3Id"/>
>      </s:treenode>
>      <s:treenode theme="ajax" label="child2" id="child2Id"/>
>      <s:treenode theme="ajax" label="child3" id="child3Id"/>
>      <s:treenode theme="ajax" label="child4" id="child4Id"/>
> ----
> -----
>
>          can you please suggest some solution to this? i am using struts
> 2.0.11
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message