XTree.html 694 B

123456789101112131415161718192021
  1. <div dojoType="dojo.data.ItemFileReadStore" jsId="ognl:clientId + 'Store'" jwcid="@Any"
  2. url="ognl:URL"></div>
  3. <div dojoType="dijit.tree.TreeStoreModel" jsId="ognl:clientId + 'Model'" jwcid="@Any"
  4. store="ognl:clientId + 'Store'" childrenAttrs="children"></div>
  5. <div dojoType="dijit.Tree" id="ognl:clientId +'Tree'" jwcid="@Any"
  6. model="ognl:clientId + 'Model'">
  7. <script type="dojo/method" event="onClick" args="item, node">
  8. var store = this.model.store;
  9. var target = store.getValue(item, "target");
  10. var action = store.getValue(item, "action");
  11. if(!!action){
  12. if(!!target){
  13. jeus.loadContent(target, action);
  14. }else
  15. window.location.href = action;
  16. }
  17. </script>
  18. </div>