You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2008/06/22 16:30:05 UTC

[jira] Resolved: (WW-2456) Struts2 treeExampleDynamicJsp controls does not render

     [ https://issues.apache.org/struts/browse/WW-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2456.
---------------------------------

    Resolution: Fixed

> Struts2 treeExampleDynamicJsp controls does not render
> ------------------------------------------------------
>
>                 Key: WW-2456
>                 URL: https://issues.apache.org/struts/browse/WW-2456
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.0.11
>         Environment: wintel 
> java version "1.5.0_02"
> TC 5.5.17
> Struts-2.0.11
>            Reporter: Martin Gainty
>             Fix For: 2.1.3
>
>
> tags/ui/treeExampleDynamic.jsp doesnt render and hangs showcase-2.0.11 web application
> here are the contents of the jsp which doesnt render
> <%@taglib prefix="s" uri="/struts-tags" %>
> <html>
> <head>
> <title>Showcase - UI Tag Example - Tree Example (Dynamic)</title>
> <s:head theme="ajax" debug="true" />
> </head>
> <body>
> <!-- START SNIPPET: treeExampleDynamicJsp -->
> <script>
>     function treeNodeSelected(nodeId) {
>         dojo.io.bind({
>             url: "<s:url value='/tags/ui/ajax/dynamicTreeSelectAction.action' />?nodeId="+nodeId,
>             load: function(type, data, evt) {
>                 var displayDiv = dojo.byId("displayId");
>                 displayDiv.innerHTML = data;
>             },
>             mimeType: "text/html"
>         });
>     };
>     dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected");
> </script>
> <div style="float:left; margin-right: 50px;">
> <s:tree 
>     theme="ajax"
>     rootNode="%{treeRootNode}" 
>     childCollectionProperty="children" 
>     nodeIdProperty="id"
>     nodeTitleProperty="name"
>     treeSelectedTopic="treeSelected">
> </s:tree> 
> </div>
> <div id="displayId">
> Please click on any of the tree nodes.
> </div>
> <!-- END SNIPPET: treeExampleDynamicJsp -->
> </body>
> </html>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.