johan
On 3/10/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
Yeah, I noticed that as I looked more in the AuthenticatedWebApp class that it really doesn't do much, but the fact of the matter is that I have to copy code over to my class. However, what happens if there is another WebApp class that is useful in the future but I'm already extending the SpringWebApp class? It just seems like a lack of reuse.On 3/9/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:The distracting thing here is the way AuthenticatedWebApplication is
implemented. It's elegant by itself, but as you noticed not very
useful if you want to use it together with another base class.
The only thing that application does though, is register itself as
IRoleCheckingStrategy and IUnauthorizedComponentInstantiationListener.
The only thing you need to do is pull those implementations out of
that webapplication class and register them in yours. You probably
want to work with your own session object anyway?
Eelco
On 3/9/06, Andrew Berman <[EMAIL PROTECTED]> wrote:
> Ok,
>
> So we all know that a class in Java cannot extend multiple classes, so
> because of this there is no way to have extend the
> AuthenticatedWebApplication and the SpringWebApplication classes for a
> single app. So, does this mean I have to copy the code of one of them into
> my class which only extends one of them? Seems kind of wrong in my opinion.
> Maybe some sort of chain needs to be implemented in WebApplications so
> instead of extending a specific WebApp class, you define in your WebApp
> class the handlers you wish to use.
>
> Thoughts or did I miss something major?
>
> Andrew
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
