-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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"); }
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");
Asked: 2017-05-11 09:22:16 +0800
Seen: 16 times
Last updated: May 22 '17
Some feedback about ZK SpreadSheet
Cannot add to Eclipse the ZK SPreadsheet jars
Zk Spreadsheet: Date in cells are displayed as GMT+0 while my locale is GMT+8
I want cancel the page part refresh ,how?
Spreadheet and pagination problem
Zk spreadsheet 2.0 beta3 - row copy/cut and paste not working
Zk spreadsheet - cell values changing automatically
how to make spreadsheet row un-editable & freeze???