Acstags: Tree usage

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.