Eelco Hillenius wrote:
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.

Blast. You're right of course. I was too focussed on getting Seam to
work. I'll look for an alternative solution. I want something that
doesn't require *any* knowledge about specific Wicket applications.

Surely you can just register it like that, but also put the name of the Wicket application (getName()) in the attribute key?

Of course, that requires you to pass in the name of the Wicket app to your Seam stuff somehow, but if you want to support running multiple apps in a single context then you'll need to disambiguate them somehow anyway, so that doesn't seem unreasonable.

Al

--
Alastair Maw
Wicket-biased blog at http://herebebeasties.com

Reply via email to