1. structure tree label (acstags: Tree)
1.1 introduce JS
<SCRIPT type = "text/JavaScript" src = "$ {resourcesctx}/widgets/
Jstree/jquery. jstree. js "> </SCRIPT>
1.2 use 1.2.1 Add the following resources to the development system; check whether resources numbered tag_tree have been added; if not, add
No.: tag_tree, name: Tag Tree resource, path:/portal/tree. Action
No.: tag_search_tree; Name: Resource queried by the Tag Tree; Path:/portal/search-tree. Action
Allocate the resource to the "common user" role
1.2.2 Add the action filter to the project's web. xml:
<Filter>
<Filter-Name> struts2filter </filter-Name>
<Filter-class> org. Apache. struts2.dispatcher. filterdispatcher </filter-class>
</Filter>
<! -- Tree plugin -->
<Filter-mapping>
<Filter-Name> springsecurityfilterchain </filter-Name>
<URL-pattern>/portal/tree. Action </url-pattern>
</Filter-mapping>
<! -- Tree query action -->
<Filter-mapping>
<Filter-Name> springsecurityfilterchain </filter-Name>
<URL-pattern>/portal/search-tree.action </url-pattern>
</Filter-mapping>
<Filter-mapping>
<Filter-Name> struts2filter </filter-Name>
<URL-pattern> *. Action </url-pattern>
<Dispatcher> request </dispatcher>
<Dispatcher> forward </dispatcher>
</Filter-mapping>
1.2.3 parameter description
<Acstags: Tree defaultable = "true" multiple = "true" treetype = "company" treeid = "companytree"> </acstags: Tree>
Parameter description:
Defaultable: "True/false". When a page needs to load multiple trees, one tree must be displayed by default. If there is only one tree, set it to "true ".
Treeid: "companytree", the ID of the tree
Treetype: the type of the tree.
Multiple: "True/false", multiple choice tree/single choice tree.
The tree type is as follows:
Company tree
Man_department_group_tree team staff tree
Man_department_tree Department staff tree
Man_group_tree workgroup staff tree
Department_tree Department tree
Group_tree workgroup tree
Department_workgroup_tree Department workgroup tree
1.2.4 example
<Acstags: Tree defaultable = "true" multiple = "true" treetype = "Company"
Treeid = "companytree"> </acstags: Tree>
Imatrix6.0.0.rc1demo login address: http://demo.imatrix.net.cn: 8888/imatrix
If you have any questions about using the imatrix platform, log on to the imatrix platform forum for consultation:
Http://bbs.imatrix.net.cn/forum.php? MoD = Forumdisplay & FID = 37
Or join the QQ Group 307599527