On Friday, 23 March 2007 08:04 am, Julian Vassev escreveu:
> Hi
> I am using wicket-spring and retrieve the application bean from the spring
> context. So I subclass SpringWebApplication.
>
> No I would like to take advantage of wicket-auth-roles project but now I am
> supposed to subclass AuthenticatedWebApplication.
>
> How can I use both of them without doing copy-paste code 'reuse'?

        I think that later versions of wicket make this very easy.  For earlier 
versions of wicket, I just used the AuthenticatedWebApplication with 
sprinklings of ideas from the spring integration project.   It's not as nice 
as having it all done for you, but it's really easy and I know that it'll go 
away when we upgrade.   And this is really a minor thing.  And wicket is just 
so darn cool I'm grateful that I can even do this much.

>
> May be it can be refactored in way that would allow wicket-auth-roles to be
> used like in wicket-spring-annot: without having to subclass from
> AnnotSpringWebApplication, just by adding a component instantiation
> listener etc.

        It is in a later version.

>
> ---------------------------------
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to