Design of Button permission and field permission management based on extjs

Source: Internet
Author: User

(1) design ideas

Step 2
1. Request
Requests initiated by web users

2. Call
Call Service to create control JSCodeMethod

3. Read the main JS file. File Name: Main. js

4. Read the confi File
The purpose of modifying a file is to facilitate debugging. you have configured whether to Filter button permissions and whether to filter field permissions.

5. Generate buttonpermissarray
This JS variable is used by the JS call button permission function.

6. Generate filedpermissionarray
This JS variable is used by JS to call the field permission function.

7. Button permission to execute functions, and field permission to execute functions
Is an execution function for button and field permission detection.

8. embed the main JS Code
Replace @ permission of the main JS File

9. embed the generated JS Code into JSP

10. respon
Return the JSP page to the Web User

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.