what you should do is something like this:
Servlet c=new WicketServlet() {
IWebApplicationFactory getApplicationFactory() {
return new IWebApplicationFactory() {
public WebApplication createApplication(WicketServlet servlet) {
return new MyApplication();
}
}
}
}
-Igor
On 5/29/06, David Leangen <[EMAIL PROTECTED]> wrote:
> this is about the application object not request processing. take
> whatever code you have in your application object's constructor and
> move it into the init() method
Thanks for the very quick reply!
Yeah, that's exactly what I did, but I'm still getting this message, and
I'm not sure why.
Essentially, I have something like this:
The OSGi container starts up the servlet by injecting it with the root
context and the application path:
HttpServlet servlet = getServlet( rootContext, applicationPath );
Then, the servlet (which extends WicketServlet) grabs the application
and feeds it some info:
AbstractApplication application = getApplication();
webApplication = application;
application.setWicketServlet( this );
Otherwise, all my init stuff is indeed in the init() method in the
Application class.
When a request is sent and the application is created by the container,
I get this:
wicket.WicketRuntimeException: Use Application.init() method for
configuring your application object
at wicket.Application.getSettings(Application.java:543)
at
wicket.Application.getRequestCycleSettings(Application.java:477)
at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java :150)
Any ideas?
Thanks again!
Dave
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
