Re: Scala, dependency injection and wicket

2009-11-11 Thread nino martinez wael
I agree on Jeremy on this one. I actually don't know much about ajax (migth be an understatement), but with wicket I've been able todo alot of ajax integrations. Heres something to read (if you want to know the inner workings):

Re: Scala, dependency injection and wicket

2009-11-10 Thread Ashley Aitken
On 08/10/2009, at 4:42 AM, Alex Rass wrote: And so far: ajax is a pain in the ass that requires explicit work even for a simple form verification (bad architecture there). Is this true? One of my attractions to Wicket was that, hopefully, AJAX was easy (or at least easier) than other

Re: Scala, dependency injection and wicket

2009-11-10 Thread Jeremy Thomerson
On Tue, Nov 10, 2009 at 12:42 PM, Ashley Aitken mrhat...@mac.com wrote: On 08/10/2009, at 4:42 AM, Alex Rass wrote: And so far: ajax is a pain in the ass that requires explicit work even for a simple form verification (bad architecture there). Is this true? One of my attractions to

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

Re: Scala, dependency injection and wicket

2009-10-12 Thread Jan Kriesten
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 used by the injector (in the article's example) is hard-coded into the InjectorService object. you could

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

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 Jan Kriesten
Hi Haim, I think you read the article from Jonas Bonér about DI with Scala [1]? In the paragraph about Guice you'll stumble over my name and my preferred way to DI with Wicket. Best regards, --- Jan. [1] http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html

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 kries...@mail.footprint.dewrote: 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,

RE: Scala, dependency injection and wicket

2009-10-07 Thread Alex Rass
This is similar problem to one I'm trying to solve. Mine's: having several html files have the same java class controlling them. (sounds simple, right?) So far the only reasonable thing came from Martin and that's to override getAssociatedMarkupStream in your own Page class. Which also implies

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 a...@itbsllc.com wrote: This is similar problem to one I'm trying to

Re: Scala, dependency injection and wicket

2009-10-07 Thread Jan Kriesten
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));)? the Injector is just a trait, so anywhere it's needed, I just