0

Problem with roles and editing cell in ZK Spreadsheet

asked 2017-05-11 09:22:16 +0000

vladcz gravatar image vladcz
103 3

updated 2017-05-11 09:42:50 +0000

I use http://zssdemo.zkoss.org/zssdemo/permission in my project

I put role name in url

I have url = http://localhost:8080/.....&role=EDITOR - I can edit cell and and save spreadsheet to database then I change I have url = http://localhost:8080/.....&role=VIEWER and I can not change

Once again I write url = http://localhost:8080/.....&role=EDITOR - I can not edit cell if earlier was VIEWER.

if (req.getParameter("role") == null) { loginRole = Role.Name.VIEWER; } else { loginRole = Role.Name.valueOf(req.getParameter("role"); }

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-05-22 07:58:56 +0000

hawk gravatar image hawk
1924 1 5
http://hawkphoenix.blogsp... ZK Team

When you apply permission of a role, it disables functions instead of enabling them. So each time you change permission, you have to reload the page to reset the permission.

in PermissionComposer

//reload the zss to reset permission
zssArea.setSrc(null);
zssArea.setSrc("/demo/permission/spreadsheet.zul");
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2017-05-11 09:22:16 +0000

Seen: 15 times

Last updated: May 22

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More