Hi Dan,
I know the wiki - but this somehow confuses me... in the Wicket-Examples
all Springapps are extending SpringWebApplication - and that file has
more than just a line in the init()... -
No If I look at the SpringWebApplication I doubt that they would provide
all those lines in it if a simple line in the init() would be enough?
I mean if I just do:
e.g:
addComponentInstantiationListener(new SpringComponentInjector(this));
like you said why are they doing all this then in the SpringWebApplication
----
e.g:
public abstract class SpringWebApplication extends WebApplication
implements
ApplicationContextAware
{
private ApplicationContext applicationContext;
/**
* Singleton instance of spring application context locator
*/
private final static ISpringContextLocator contextLocator = new
ISpringContextLocator()
{
public ApplicationContext getSpringContext()
{
Application app = Application.get();
return
((SpringWebApplication)app).internalGetApplicationContext();
}
};
.....
---
as well as more things - arent this needed?
Best,
Korbinian
Dan Kaplan schrieb:
The wiki has a section on spring integration. You put a line in your app's
init() method to accomplish this. It should be easy to find.
-----Original Message-----
From: Korbinian Bachl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 02, 2008 1:44 PM
To: [email protected]
Subject: MyWebApplication, SpringWebApplication +
AuthenticatedWebApplication
Hi,
usually my WebApp is based on Wicket-Auth-Roles, so I do:
MyWebApp extends AuthenticatedWebApplication {....
Lately I played around with spring 2.5 a bit and so used
MyWebApp extends SpringWebApplication {....
but how can I now integrate a SpringWebApplication to use Wicket-Auth-Roles?
The only way I currently see is to copy'n paste the content of the
SpringWebApplication into MyWebApp and let it extend
AuthenticatedWebApplication - but copy'n paste is not my preferable way
however...
Any ideas?
Best,
Korbinian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]