and it looks like that we try to duplicate the Applicat.get(appname)
behavior
i think that is the way to always get an application object you only have to
know the appname

And to correctly do the thing below we also have to append the appname
after:

SERVLET_CONTEXT_APPLICATION_KEY

johan


On 7/16/07, Jean-Baptiste Quenot <[EMAIL PROTECTED]> wrote:

* [EMAIL PROTECTED]:
> Author: ehillenius
> Date: Sun Jul 15 13:20:59 2007
> New Revision: 556443
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=556443
> Log:
> register the web application instance with the servlet context so that
extending framework can find the instance without having to rely on the
current thread

Eelco,

That's a nice idea but sadly I don't think it will work if you have
multiple Wicket applications in the same servlet context.  For
example in wicket-examples we have several dozen apps on the same
servlet context.  The servlet context attribute will be overriden
everytime, so in the end you'll only keep the last-initialized
application.
--
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Reply via email to