There is no need to extend the SpringWebApplication anymore:

class MyApplication extends WebApplication {
    public void init() {
        super.init();
        addComponentInstantiationListener(new SpringComponentInjector(this));
    }
}


You can read more here: http://cwiki.apache.org/WICKET/spring.html

Martijn

On Dec 21, 2007 10:13 AM, sp <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm new to Wicket and to Java in general.
>
> I'm trying to configure a Swarm+Acegi-driven security for my application.
> Since I need more Spring in future, MyWebApplication extends
> SpringWebApplication and implements WaspApplication.
>
> To make things work, I have to use WaspSession instead of regular Session,
> but when I try to override newSession() method in MyWebApplication, my IDE
> says this method is declared final in WebApplication class.
>
> This is 1.3-RC2 version of Wicket, Swarm & Wasp are second betas.
>
> I assume I have to use my own SessionFactory somehow to put WaspSession in
> use. I just thought that the introduction of newSession() method was
> something done in 1.3 specifically to avoid using of SessioFactory just to
> use cusom Session.
>
> Please, tell me if I'm missing something here.
>
> Thanks.
>
> --
> sp
>



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/

Reply via email to