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 rewriting cache useage etc.

Wanna do it together or smth?

I'm new to wicket myself. And so far: ajax is a pain in the ass that
requires explicit work even for a simple form verification (bad architecture
there). And this other problem with url formation. Just hoping they didn't
go nuts making stuff final, like apache usually does ;)

-----Original Message-----
From: Haim Ashkenazi [mailto:haim.ashken...@gmail.com] 
Sent: Wednesday, October 07, 2009 10:51 AM
To: users@wicket.apache.org
Subject: Scala, dependency injection and wicket

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 the "Programing in scala" book, that is using traits with
self type annotations and lazy vals (for calling modules). It's very easy to
construct object/classes for testing this way. Now I reached the web part
(wicket) and I came to a problem. In wicket the class name *has* to match
the html file (e.g. package/HomePage.html must have a corresponding
package.HomePage.class). This makes it (I think) impossible to use the above
method for DI.

One solution is to use DI framework like guice, but I was wondering if
someone hear has other idea?

Thanks in advance
-- 
Haim


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to