On Wed, Mar 20, 2013 at 2:34 AM, Martin Grigorov wrote:
> If you ask "how Wicket decides which classes to auto-inject"
Yes, this is what I'm asking. In my application class, I have this line
getComponentInstantiationListeners().add(new GuiceComponentInjector(this,
new BlogModule()));
If I und
Hi,
I'm not sure what you mean by module.
If you talk about Guice module - the module is just the class with the
configuration. Wicket just delegates the job of resolving a bean to Guice's
Injector that uses all registered Guice modules to find the binding.
If you ask "how Wicket decides which c
How does wicket know which module to inject?
___
Stephen Walsh | http://connectwithawalsh.com
On Sun, Mar 17, 2013 at 12:59 PM, Dan Retzlaff wrote:
> Wicket only injects Components and Behaviors by default. To inject into
> anything else, call Injector.get()
Wicket only injects Components and Behaviors by default. To inject into
anything else, call Injector.get().inject(this) in its constructor.
On Fri, Mar 15, 2013 at 2:27 PM, Stephen Walsh <
step...@connectwithawalsh.com> wrote:
> I have a much better understanding on this now. Are there any plans
I have a much better understanding on this now. Are there any plans to
support injection on LDMs, or is there a suggested work around for this?
It seems like you'd want a DAO service to get an object from the DB within
a custom model so you can return that back to your component.
___
Take a look at wicket-examples and the unit tests in wicket-guice module.
On Thu, Mar 14, 2013 at 10:53 PM, Stephen Walsh <
step...@connectwithawalsh.com> wrote:
> Any other thoughts on this?
>
> ___
> Stephen Walsh | http://connectwithawalsh.com
>
>
> On Thu,
Any other thoughts on this?
___
Stephen Walsh | http://connectwithawalsh.com
On Thu, Mar 14, 2013 at 10:30 AM, Stephen Walsh <
step...@connectwithawalsh.com> wrote:
> Thanks, Martin. I intialize here, (which I just realized is not the best
> spot):
>
> p
Thanks, Martin. I intialize here, (which I just realized is not the best
spot):
private void setUpMongo() {
mongo = MongoUtil.getMongo();
morphia = new Morphia().map(Blog.class).map(Person.class);
blogDAO = new BlogDAO(mongo, morphia);
}
I am using the Wicket Guic
Hi,
I don't see how you initialize blogDAO. If you don't use wicket-ioc module
then you will need to lookup the DAO from the application whenever you need
it:
public void onSubmit() {
BlogDAO blogDao = MyApplication.get().getBlogDAO();
blogDao.save(blog);
}
This way you wont keep reference t
I'm attempting to implement Guice for my DAO connections as my JBoss server
keeps running out of memory. Not entirely sure why that is, but I'm hoping
this is at least part of it. I read through
http://markmail.org/message/sz64l4eytzc3ctkh and understand why the DAO
needs to be serialized, and I
10 matches
Mail list logo