Re: [Wicket-user] Spring integration question

2007-04-18 Thread nlif
Very well. But, this means that not even the Application holds the services as members. Every call to getService() will go to the spring context, and create a new proxy, right? This seems sub-optimal. Is the Application object ever serialized? If it is not, and I make sure never to hold reference

Re: [Wicket-user] Spring integration question

2007-04-18 Thread Igor Vaynberg
the application is never serialized, so you are free to hold any references there you like. -igor On 4/17/07, nlif [EMAIL PROTECTED] wrote: Very well. But, this means that not even the Application holds the services as members. Every call to getService() will go to the spring context, and

[Wicket-user] Spring integration question

2007-04-17 Thread nlif
Hi, I am using Wicket 1.2.5 with the Wicket-Spring extension, but without the annotation support (I am on JDK 1.4). It seems there are two ways to integrate with Spring: 1) In my web.xml, to use the SpringWebApplicationFactory, and to define MyWicketApplication as a bean in my Spring context

Re: [Wicket-user] Spring integration question

2007-04-17 Thread Igor Vaynberg
On 4/17/07, nlif [EMAIL PROTECTED] wrote: If I go with (1), then it makes sense to use the fact that the Application instance is created by Spring, to also inject it with the Services: I just provide setters. But then - how do I implement the getters so that they return the proxies? then

Re: [Wicket-user] spring integration question

2007-01-23 Thread Frank Bille
On 1/23/07, Johan Compagner [EMAIL PROTECTED] wrote: it is strange isn't it now you fixed it so it works on the server Hmm.. and it works on my machine as well. Windows Sucks(tm) Frank - Take Surveys. Earn Cash.

Re: [Wicket-user] spring integration question

2007-01-23 Thread Johan Compagner
yes and i rechecked it in. Because the file you checked in is just plain wrong. Those extra empty spaces don't make any sense! Please recheck if it fails again for you and then test why those extra spaces are in front of every empty line. So i guess Windows Rules.. others just suck! :) johan

Re: [Wicket-user] spring integration question

2007-01-23 Thread Erik van Oosten
Johan Compagner wrote: So i guess Windows Rules.. others just suck! :) To rule and to suck can go hand in hand as well :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and

Re: [Wicket-user] spring integration question

2007-01-23 Thread Frank Bille
Now it works here as well. :) Good job On 1/23/07, Johan Compagner [EMAIL PROTECTED] wrote: yes and i rechecked it in. Because the file you checked in is just plain wrong. Those extra empty spaces don't make any sense! Please recheck if it fails again for you and then test why those extra

Re: [Wicket-user] spring integration question

2007-01-23 Thread Johan Compagner
jip i noticed this also. I guess it is something that the commented source code that is removed from the page after rendering did or whatever. Can anybody look at the last thing that got stuck:

Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner
i already fixed this by not using a file at all but just directly the inputstream All test are running fine now on my windows machine. Can somebody with a mac or linux look why there are still one or two test failing? It has to do something with encoding i guess. johan On 1/16/07, Frank

Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille
On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: i already fixed this by not using a file at all but just directly the inputstream Yeah saw that. :) All test are running fine now on my windows machine. Can somebody with a mac or linux look why there are still one or two test failing?

Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner
see: http://wicketstuff.org/bamboo/start.action and then: http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest don't look at the 85 errors. as far as i can see it is only one. But thats a Bamboo bug. johan On 1/22/07, Frank Bille [EMAIL PROTECTED] wrote: On 1/22/07, Johan

Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille
On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest Ok, that one. I'll take a look at that tonight. Btw has anyone reported that test count bug in bamboo? Frank

Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner
yes: http://jira.atlassian.com/browse/BAM-732 they say it is a maven error??? johan On 1/22/07, Frank Bille [EMAIL PROTECTED] wrote: On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: http://wicketstuff.org/bamboo/browse/WICKET2X-WICKET/latest Ok, that one. I'll take a look at that

Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille
On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: yes: http://jira.atlassian.com/browse/BAM-732 they say it is a maven error??? Yeah it looks like it. Have never seen it before. Take a look at the attached file which is taken from the latest build. I'll take a look at this as well

Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner
I already fixed it The surefire plugin now uses a bit older version: version2.1.3/version And suddenly everything is cleaned up (see bamboo) now really only one thing is failing. johan On 1/22/07, Frank Bille [EMAIL PROTECTED] wrote: On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote:

Re: [Wicket-user] spring integration question

2007-01-22 Thread Frank Bille
Hehe ok. I guess I'll fix it tonight is to late for you, huh? ;o) Frank On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: I already fixed it The surefire plugin now uses a bit older version: version2.1.3/version And suddenly everything is cleaned up (see bamboo) now really only one thing

Re: [Wicket-user] spring integration question

2007-01-22 Thread Johan Compagner
it is strange isn't it now you fixed it so it works on the server and now i get the error: --- Battery: wicket.markup.html.basic.SimplePageTest

Re: [Wicket-user] spring integration question

2007-01-16 Thread Frank Bille
On 1/15/07, Eelco Hillenius [EMAIL PROTECTED] wrote: The licence header test fails. If you provide parameter -Dmaven.test.skip=true, the project builds and works fine. Frank, if you are reading this, wouldn't licenseHeader = url.getFile(); work better than licenseHeader = new

Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
I personally think it is easer to override the init method of your application: protected void init() { super.init(); addComponentInstantiationListener(new SpringComponentInjector(this)); ... } and use the @SpringBean where you want to use your DAO. @SpringBean

Re: [Wicket-user] spring integration question

2007-01-15 Thread Peter Thomas
Thanks Mats, I totally agree that that is a pretty clean option. This does mean that you have to include wicket-spring and wicket-spring-annot though - which I avoided. I am trying to figure if the alternate approach is workable and then I do feel it is worth adding to the wiki. Also it may be

Re: [Wicket-user] spring integration question

2007-01-15 Thread Mats Norén
Oops, sorry, didn't read your entire mail. However, I do feel that the extra dependency is worth it in the long run. You very seldom have only one DAO in your application... :) Let's say you have 50 beans that you want to use in different parts of the system, the code bloat in the Application

Re: [Wicket-user] spring integration question

2007-01-15 Thread Peter Thomas
Thanks Mats, yes I agree. I am also reporting (refer original message) that wicket-spring-annot is broken for Maven 2 users, so at the moment I cannot use it even if I wanted to. Can anyone comment on this? Thanks, Peter. On 1/15/07, Mats Norén [EMAIL PROTECTED] wrote: Oops, sorry, didn't

Re: [Wicket-user] spring integration question

2007-01-15 Thread Eelco Hillenius
The licence header test fails. If you provide parameter -Dmaven.test.skip=true, the project builds and works fine. Frank, if you are reading this, wouldn't licenseHeader = url.getFile(); work better than licenseHeader = new wicket.util.file.File(new URI(url.toString())).readString(); ?

[Wicket-user] spring integration question

2007-01-14 Thread Peter Thomas
Hi, I was thinking that more option can be added to the official wicket-spring integration documentation. Something like this: 1) normal wicket servlet config in web.xml, with applicationClassName init-param 2) Application class uses Spring API to get hold of dependency like this: class