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 - 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
tags/ui/treeExampleDynamic.jsp doesnt render and hangs showcase-2.0.11 web
application
here are the contents of the jsp which doesnt render
<[EMAIL PROTECTED] 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.