You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ryan O'Hara <oh...@genome.chop.edu> on 2008/08/07 19:41:11 UTC
SecureMarkupContainer
I created a SecureMarkupContainer following Maurice's example (http://
www.nabble.com/Swarm%3A-Authorization--for-WebMarkupContainer-
td17206272.html#a17219441), with the only difference being it's its
own class (not subclass). For some reason, the component doesn't
seem to be added to the page after authenticating. The correct
values are returned by typeOfData.isAuthenticated(). However, it
seems whatever hides/displays the component is not getting executed
or executed correctly. Below are some snippets of code:
Search:
SecureMarkupContainer typeOfData = new SecureMarkupContainer
("typeOfData");
add(typeOfData);
Search.html:
<div wicket:id="typeOfData">security works!</div>
cnv.hive:
permission
org.apache.wicket.security.hive.authorization.permissions.ComponentPermi
ssion "${cnv}.Search:typeOfData", "inherit, render, enable";
Also, I have a few other secure components working fine (ie
SecureLink). Any ideas?
Thanks,
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org