Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-03 Thread Nino Saturnino Martinez Vazquez Wael

I am aware that the wiki needs a rewrite...

And also the examples.. Please notice how you can switch out your 
dbprovider with a mocked one, thats really cool..


Korbinian Bachl wrote:

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: users@wicket.apache.org
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]




--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-03 Thread Nino Saturnino Martinez Vazquez Wael

no its not. just add the componentinstantionlistener...

Look here for sample code:

http://svn2.assembla.com/svn/wicketBaisc/trunk/wicketBasic/

Just check one of the labs...

regards Nino

Korbinian Bachl wrote:

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: users@wicket.apache.org
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]




--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-03 Thread Korbinian Bachl

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: users@wicket.apache.org
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]



RE: MyWebApplication, SpringWebApplication + AuthenticatedWebApplication

2008-01-02 Thread Dan Kaplan
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: users@wicket.apache.org
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]