Re: [Wicket-user] Spring integration question
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 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 to a service as a member in any of my components - then I can inject services to the Appliction, can't I? Thanks again, Naaman igor.vaynberg wrote: > > 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 you cannot create proxies. the proxy needs the information needed to > lookup the bean from the context, which a returned bean does not possess. > so > you have to be very careful not to keep references to those > spring-injected > beans anywhere in your components like the wiki page explains. > > -igor > > > > Thanks, >> Naaman >> -- >> View this message in context: >> http://www.nabble.com/Spring-integration-question-tf3590701.html#a10035142 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Spring-integration-question-tf3590701.html#a10053009 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Spring integration question
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 to a service as a member in any of my components - then I can inject services to the Appliction, can't I? Thanks again, Naaman igor.vaynberg wrote: > > 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 you cannot create proxies. the proxy needs the information needed to > lookup the bean from the context, which a returned bean does not possess. > so > you have to be very careful not to keep references to those > spring-injected > beans anywhere in your components like the wiki page explains. > > -igor > > > > Thanks, >> Naaman >> -- >> View this message in context: >> http://www.nabble.com/Spring-integration-question-tf3590701.html#a10035142 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Spring-integration-question-tf3590701.html#a10053009 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Spring integration question
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 you cannot create proxies. the proxy needs the information needed to lookup the bean from the context, which a returned bean does not possess. so you have to be very careful not to keep references to those spring-injected beans anywhere in your components like the wiki page explains. -igor Thanks, Naaman -- View this message in context: http://www.nabble.com/Spring-integration-question-tf3590701.html#a10035142 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Spring integration question
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 XML. 2) Not to do any of the above, but make MyWicketApplication subclass of SpringWebApplication. It then locates the Spring context in its internalInit() method. Both work, but here is my question: If I do (2) then in my Application class I will provide getters for Services obtained via Spring, and use the createSpringBeanProxy() method, with a bean-name. This is lookup, not injection, but on the other hand, I get the Serialization-Proxy. 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? Thanks, Naaman -- View this message in context: http://www.nabble.com/Spring-integration-question-tf3590701.html#a10035142 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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: http://wicketstuff.org/bamboo/browse/WICKET2X-EXTENSIONS-11/test/wicket.extensions.markup.html.tree.TreeTest:testRenderTreePageWithBorder_1 it has something to do with borders and transparent resolving of stuff. "tree" child is asked at the page, But the page (which isn't a transparent resolver) doesn't have that as a child but the border (the transparent) has it but that is a child of the page so how does that suppose to work? johan On 1/23/07, Frank Bille <[EMAIL PROTECTED]> wrote: 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 > spaces are in front of every empty line. > > So i guess Windows Rules.. others just suck! :) > > johan > > > On 1/23/07, Frank Bille <[EMAIL PROTECTED] > wrote: > > > 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. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 spaces are in front of every empty line. So i guess Windows Rules.. others just suck! :) johan On 1/23/07, Frank Bille <[EMAIL PROTECTED] > wrote: > 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. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 On 1/23/07, Frank Bille <[EMAIL PROTECTED]> wrote: 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. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 --- Tests run: 17, Failures: 1, Errors: 0, Time elapsed: 0,297 sec testRenderHomePage_3(wicket.markup.html.basic.SimplePageTest) Time elapsed: 0,016 sec <<< FAILURE! [ stdout ] --- === wicket.markup.html.basic.SimplePage_3 === [ stderr ] --- [ stacktrace ] --- junit.framework.ComparisonFailure: wicket/markup/html/basic/SimplePageExpectedResult_3.html expected:<..> but was:<... ...> at junit.framework.Assert.assertEquals(Assert.java:81) at wicket.util.diff.DiffUtil.validatePage(DiffUtil.java:107) at wicket.WicketTestCase.executeTest(WicketTestCase.java:81) at wicket.markup.html.basic.SimplePageTest.testRenderHomePage_3( SimplePageTest.java:283) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.battery.JUnitBattery.executeJUnit( JUnitBattery.java:242) at org.apache.maven.surefire.battery.JUnitBattery.execute( JUnitBattery.java:216) at org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) at org.apache.maven.surefire.Surefire.run(Surefire.java:163) at org.apache.maven.surefire.Surefire.run(Surefire.java:87) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.SurefireBooter.runTestsInProcess( SurefireBooter.java:313) at org.apache.maven.surefire.SurefireBooter.run(SurefireBooter.java:221) at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:371) at org.apache.maven.plugin.DefaultPluginManager.executeMojo( DefaultPluginManager.java:415) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( DefaultLifecycleExecutor.java:531) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle (DefaultLifecycleExecutor.java:472) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( DefaultLifecycleExecutor.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures (DefaultLifecycleExecutor.java:303) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:270) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( DefaultLifecycleExecutor.java:139) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) On 1/22/07, Frank Bille <[EMAIL PROTECTED]> wrote: 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: > > 2.1.3 > > And suddenly everything is cleaned up (see bamboo) > now really only one thing is failing. > > johan > > > On 1/22/07,
Re: [Wicket-user] spring integration question
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: 2.1.3 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: > > > > 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 tonight. > > Frank > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
I already fixed it The surefire plugin now uses a bit older version: 2.1.3 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: > > 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 tonight. Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 tonight. Frank http://java.sun.com/"; name="java.vendor.url"/> http://java.sun.com/cgi-bin/bugreport.cgi"; name="java.vendor.url.bug"/> - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 tonight. Btw has anyone reported that test count bug in bamboo? Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 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? > > It has to do something with encoding i guess. > Which tests are you talking about? Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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? It has to do something with encoding i guess. Which tests are you talking about? Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 Bille <[EMAIL PROTECTED]> wrote: 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 wicket.util.file.File(new > URI(url.toString())).readString(); ? > I guess so. Let me take a look at it later today. Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 wicket.util.file.File(new URI(url.toString())).readString(); ? I guess so. Let me take a look at it later today. Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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(); ? Currently, the test run from Eclipse succeeds, but running from mvn results in: Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec <<< FAILURE! testLicenseHeaders(wicket.util.license.ApacheLicenceHeaderTest) Time elapsed: 0.086 sec <<< FAILURE! junit.framework.AssertionFailedError: URI is not hierarchical at junit.framework.Assert.fail(Assert.java:47) at wicket.util.license.AbstractLicenseHeaderHandler.getLicenseHeader(AbstractLicenseHeaderHandler.java:77) at wicket.util.license.JavaLicenseHeaderHandler.checkLicenseHeader(JavaLicenseHeaderHandler.java:81) at wicket.util.license.ApacheLicenseHeaderTestCase$1.visitFile(ApacheLicenseHeaderTestCase.java:209) etc. Eelco On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > 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 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 class will be quite big. > > > > /Mats > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 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 class will be quite big. /Mats - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 class will be quite big. /Mats On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > 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 more appealing to those > folks who are anti-annotations. (yes such people exist :) > > Regards, > > Peter. > > > On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote: > > 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 > > ContactDao contactDao > > > > /Mats > > > > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 more appealing to those folks who are anti-annotations. (yes such people exist :) Regards, Peter. On 1/15/07, Mats Norén <[EMAIL PROTECTED]> wrote: 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 ContactDao contactDao /Mats - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] spring integration question
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 ContactDao contactDao /Mats On 1/15/07, Peter Thomas <[EMAIL PROTECTED]> wrote: > 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 MyApplication extends WebApplication { >private ContactDao dao; >public ContactDao getContactDao() { return dao; } > >public void init() { >ServletContext sc = > getWicketServlet().getServletContext(); >dao = (ContactDao) > WebApplicationContextUtils.getWebApplicationContext(sc).getBean("contactDao"); >} > } > > 3) Have all pages / components extend BasePage that has a getContactDao() > method - exactly like the first option in the wicket-spring wiki > documentation here: > http://www.wicket-wiki.org.uk/wiki/index.php/Spring > > I understand the risk of running into the serialization problem and also > that this may be considered not-so-elegant because of using the Spring API > directly without any dependency injection. But I want to mention my > experience, I spent a lot of time going through the existing documentation > agonizing over which option to choose. Trying to understand all the > options, lazy proxies etc was a little daunting for a spring fan like me. > > In my case I just have one clean dependency and finally it was so easy to do > it as suggested above. I also don't need the wicket-spring jar at all. Are > there any other compelling reasons for using the wicket-spring lib? Is the > suggested approach fine for small projects who want to hook into Spring > quickly? > > Another thing - I initially tried to use wicket-spring-annot and Maven 2 > complained with this error: > > > > [INFO] Failed to resolve artifact. > > GroupId: wicket > ArtifactId: wicket-parent > Version: 1.2-SNAPSHOT > > Reason: Unable to download the artifact from any repository > > wicket:wicket-parent:pom:1.2-SNAPSHOT > > from the specified remote repositories: > central ( http://repo1.maven.org/maven2) > > = > > I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly > refers to 1.2-SNAPSHOT version for wicket-parent. The url of the offending > file in the maven repository is this: > > http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom > > Let me know if I need to log an issue or something. > > Thanks, > > Peter. > > - > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] spring integration question
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 MyApplication extends WebApplication { private ContactDao dao; public ContactDao getContactDao() { return dao; } public void init() { ServletContext sc = getWicketServlet().getServletContext(); dao = (ContactDao) WebApplicationContextUtils.getWebApplicationContext (sc).getBean("contactDao"); } } 3) Have all pages / components extend BasePage that has a getContactDao() method - exactly like the first option in the wicket-spring wiki documentation here: http://www.wicket-wiki.org.uk/wiki/index.php/Spring I understand the risk of running into the serialization problem and also that this may be considered not-so-elegant because of using the Spring API directly without any dependency injection. But I want to mention my experience, I spent a lot of time going through the existing documentation agonizing over which option to choose. Trying to understand all the options, lazy proxies etc was a little daunting for a spring fan like me. In my case I just have one clean dependency and finally it was so easy to do it as suggested above. I also don't need the wicket-spring jar at all. Are there any other compelling reasons for using the wicket-spring lib? Is the suggested approach fine for small projects who want to hook into Spring quickly? Another thing - I initially tried to use wicket-spring-annot and Maven 2 complained with this error: [INFO] Failed to resolve artifact. GroupId: wicket ArtifactId: wicket-parent Version: 1.2-SNAPSHOT Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2) = I think the reason is because the wicket-spring-annot-1.2.4.pom incorrectly refers to 1.2-SNAPSHOT version for wicket-parent. The url of the offending file in the maven repository is this: http://repo1.maven.org/maven2/wicket/wicket-spring-annot/1.2.4/wicket-spring-annot-1.2.4.pom Let me know if I need to log an issue or something. Thanks, Peter. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user