« Return to Thread: Wicket RAD and wicket-guice on Wicket 1.4

Re: Wicket RAD and wicket-guice on Wicket 1.4

by oyvindj :: Rate this Message:

Reply to Author | View in Thread

I realized that there is probably at least one way support for Guice will have to be supported by Wicket RAD in a similar way that Wicket does.

This is when objects that will be instantiated by wicket-rad are using injected objects. This could in theory be several types of objects.

The one example I have run into is for the different Choice classes where you often wants to call a service layer object to retrieve the options to return. In this case you typically want to inject this service object.

I believe this needs to be supported by the framework (wicket-rad) somehow (maybe through a component instantation listener) to avoid ugliness. I use some some ugly hack to work around this problem currently.

It could also be that I am totally wrong and there is an easy way around the issue that I don't know about...

Oyvind

 « Return to Thread: Wicket RAD and wicket-guice on Wicket 1.4