I answered your first post (where you omitted { and }).

I have seen your correction after sending this

;)

nasrin mansour a écrit :
yes i said this before , has my syntax any different with your's?

On Dec 31, 2007 2:07 PM, Sébastien Piller <[EMAIL PROTECTED]> wrote:

  
 Yes, I tried it too, but it doesn't work.

The right syntax seems to be @AutorizeInstanciation( *{* "poweruser",
"admin", "sysadmin" *}* )

Thanks

nasrin mansour a écrit :

hi
i don't have enough experience in this topic like you but i think if you
look at wicket-role-auth-example it's usuful and
 i think you must wite  this :
@AuthorizeInstanciation("poweruser,admin,sysadmin")
in this way:
@AuthorizeInstanciation("poweruser ", "admin", "sysadmin")

On Dec 31, 2007 3:35 AM, Pills <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:



 Hello,

I'm using the wicket-auth-roles package to allow or restrict access to
some
pages. I need to autorize the instanciation of some pages to several
roles.
Is it possible to write something like:

@AuthorizeInstanciation("poweruser,admin,sysadmin")
class Mypage extends WebPage {...}

and something like this in my authenticated session:

public Roles getRoles() {
   return new Roles(new String[] {"poweruser","admin","sysadmin"});
}

If it's possible, what is the right syntax?

PS: I've read a bit about wasp/swarm, but it looks too much complicated
for
my needs (I just need to prevent some components to be instantiated for
some
kinds of users). Hiding/showing links and such fonctionnality is not
needed

Thank you ;)
--
View this message in context:http://www.nabble.com/%40AuthorizeInstanciation-and-several-roles-tp14552711p14552711.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 --------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]
    

  

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to