Hello,
Please, I need help. I'm testing the Tree component but nothing is showing
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/icon.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/color.css">
<link rel="stylesheet" type="text/css" href="http://localhost:8080/rest-jui/static/js/themes/mp.css">
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/locale/easyui-lang-es.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.maskedinput-1.4.1.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/mpjs.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/plugins/DateFormatter/dateformatter.js"></script>
<script type="text/javascript" src="http://localhost:8080/rest-jui/static/js/jquery.blockUI.js"></script>
<script type="text/javascript">
$(function(){
$('#tt2').tree({
url: 'http://localhost:8080/rest-jui/rest/systree/todos',
method: 'GET'
});
});
</script>
</head>
<body >
<ul id="tt2"></ul>
</body>
</html>
These data are returned from the server when I invoke it from the url directly
http://localhost:8080/rest-jui/rest/systree/todos[{id: 1,text:'Node 1',state: 'closed',children:[{id: 11,text: 'Node 11'},{id: 12,text: 'Node 12'}]},{id: 2,text: 'Node 2', state: 'closed'}]
Thank for advance!