Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-11 Thread Christopher L Merrill
Now I'm embarrassed for posting that question. I see there is a SecurePageLink class that already does that I need...and I see from that source how I can create the LinkSecurityCheck if I wanted to do it myself. Thanks Warren! I've got it working now. Like everything else in Wicket, that was r

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-11 Thread Christopher L Merrill
Warren Bell wrote: > Try securing the link on your HomePage and do not secure the HomePage > itself. The link has to implement ISecureComponent. Warren, I've followed your suggestion but the link is still rendering, so I'm still missing something. First, I made my own component MyPageLink that

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-10 Thread Warren Bell
Try securing the link on your HomePage and do not secure the HomePage itself. The link has to implement ISecureComponent. Add the permission for the link to your "basic" principal. org.apache.wicket.security.hive.authorization.SimplePrincipal "basic" { //Permission for link on HomePage perm

Re: getting started with swarm/wasp - rendering links to secure pages

2009-06-10 Thread Luca Provenzani
i don't think it is possible to do... because HomePage isn't a secure page and then it's not under swarm control when it's rendered. i'm afraid that you have to do by your hand... but i'm not an expert! ;-) Luca 2009/6/9 Christopher L Merrill > I have a question about rendering of links to sec

getting started with swarm/wasp - rendering links to secure pages

2009-06-09 Thread Christopher L Merrill
I have a question about rendering of links to secure pages when the user has not been authenticated. Based on this line from the tutorial: "In addition we granted links to our homepage the right to be clicked (enable)." I expected the link to either be non-visible or non-clickable - since I di