0

Spring Security - Performs security check when Bean changes.

asked 2011-04-18 10:58:43 +0800

gesuinonapoli gravatar image gesuinonapoli
51 1
http://gesuinonapoli.blog...

updated 2011-04-18 11:00:59 +0800

Hi all, I try again to ask a question to the community forum, having had little luck in the previous thread.

This question is very simple can I reload (refresh,rerender,redraw) a single ZK component?

I have an EL script in the zul file that checks if the logged user can read a domain object

....
<treeitem id="tiVoertuigen">
   <zk if="${sec:isAccessible('READ_FREE_CARS',fleet) || sec:isAnyGranted('ROLE_SUPER_USER,ROLE_SUPER_CUSTOMER_USER')}">
	<treerow id="filterAutosActueel">
...

if the domain object changes the EL doesn't recheck the permissions until we re-render the UI.

I tryied to redraw and to invalidate :

...
Component tree = root.getFellow("menu_tree");
tree.invalidate();
java.io.StringWriter wr = new java.io.StringWriter();
tree.redraw(wr);
...

but the component is not redraw.

Is there a way to redraw a single component in order to re-execute the security check?

Thanks

delete flag offensive retag edit
Be the first one to reply this discussion!
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

RSS

Stats

Asked: 2011-04-18 10:58:43 +0800

Seen: 310 times

Last updated: Apr 18 '11

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