problems with WicketTester and Scala

2009-11-20 Thread Haim Ashkenazi
Hi I'm playing around with wicket/scala and I found some odd behavior with WicketTester. The code is here: http://github.com/babysnakes/comnshours revision: 6196415aa5910d984dd582e7a6aa28017e6f0dbc The specific test is here: http://github.com/babysnakes/comnshours/blob/6196415aa5910d984dd582e7a

Re: Scala, dependency injection and wicket

2009-10-12 Thread Haim Ashkenazi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi On Oct 12, 2009, at 10:01 AM, Jan Kriesten wrote: Hi, I've started testing this approach and I'm a little stuck. I can easily inject objects like that for running the application, but how do I inject mock objects for testing? The module use

Re: Scala, dependency injection and wicket

2009-10-12 Thread Haim Ashkenazi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi jan, On Oct 8, 2009, at 6:47 AM, Jan Kriesten wrote: Hi Haim, Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket- guice way (addComponentInstantiationLis

Re: Scala, dependency injection and wicket

2009-10-08 Thread Haim Ashkenazi
Hi jan, On Oct 8, 2009, at 6:47 AM, Jan Kriesten wrote: Hi Haim, Yes, I remember seeing that. How would you add it to wicket? by adding ServiceInjector trait to the Application class or using the wicket- guice way (addComponentInstantiationListener(new GuiceComponentInjector(this));)?

Re: Scala, dependency injection and wicket

2009-10-07 Thread Haim Ashkenazi
Hi Alex, Wow, I just realized something... I've sent this to the wrong list :) I've meant to send it to the scala mailing list (this may explain why I explain the way wicket works). On Wed, Oct 7, 2009 at 10:42 PM, Alex Rass wrote: > This is similar problem to one I'm trying to solve. > Mine's

Re: Scala, dependency injection and wicket

2009-10-07 Thread Haim Ashkenazi
Hi Jan, On Wed, Oct 7, 2009 at 4:59 PM, Jan Kriesten wrote: > > Hi Haim, > > I think you read the article from Jonas Bonér about DI with Scala [1]? > yes of course :) > > In the paragraph about Guice you'll stumble over my name and my preferred > way to > DI with Wicket. > Yes, I remember seein

Scala, dependency injection and wicket

2009-10-07 Thread Haim Ashkenazi
Hi I've started a test project on which I use scala, wicket and couchdb (I'm new to all of them, which should make it fun :) ). Until now I was dealing with the writing sample data access code, and I was reading a lot of articles about DI in scala. I more or less went with what is suggested in th

Re: bookmarkable pages from scala

2009-09-17 Thread Haim Ashkenazi
Hi Micheal, On Fri, Sep 18, 2009 at 12:41 AM, Michael Mosmann wrote: > Am Donnerstag, den 17.09.2009, 08:06 +0300 schrieb Haim Ashkenazi: > > OK, I think I've found it. :) > > > > getResponsePage(Class) first links to a regular wicket url and only then > > redir

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
OK, I think I've found it. :) getResponsePage(Class) first links to a regular wicket url and only then redirects to a bookmarkable one. This is why it didn't work when invalidating the session :) Bye On Wed, Sep 16, 2009 at 11:10 PM, Haim Ashkenazi wrote: > Hi again, >

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
On Wed, Sep 16, 2009 at 10:18 PM, Haim Ashkenazi wrote: > Hi MIcheal, > > On Wed, Sep 16, 2009 at 6:52 PM, Michael Mosmann wrote: > >> Hi, >> >> After Session.invalidate everything is cleaned up.. >> change your code from >> >> add (new SLink("go

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi MIcheal, On Wed, Sep 16, 2009 at 6:52 PM, Michael Mosmann wrote: > Hi, > > After Session.invalidate everything is cleaned up.. > change your code from > > add (new SLink("gohome", {setResponsePage(classOf[HomePage])})) > > to > > add(new BookmarkablePageLing("gohome", classOf[HomePage])); > >

Re: bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
Hi Michael, On Wed, Sep 16, 2009 at 4:40 PM, Michael Mosmann wrote: > Am Mittwoch, den 16.09.2009, 16:32 +0300 schrieb Haim Ashkenazi: > > Hi > > > > I'm trying to run setResponsePage with a class parameter. According to > the > > doc if I run: > > se

bookmarkable pages from scala

2009-09-16 Thread Haim Ashkenazi
;t work as expected with scala. Thanks in advance Haim Ashkenazi -- Haim