Not directly related to your question, but you might like to know that
the "name" property of @SpringBean defaults to your field name, so you
could have written it like this...

    @SpringBean
    private ContentSettings contentSettings;
 
    @SpringBean
    private LearningItemRepository learningItemRepository;

jk

On Wed, May 09, 2007 at 05:36:52PM -0500, Matt Welch wrote:
> I am using the @SpringBean annotation to instantiate Spring dependencies in
> my wicket pages but I have one page that is giving me a error that I'm
> having trouble dealing with. Here's an example.
> 
> The Wicket page class:
> 
> public class Viewer extends WebPage {
> 
>    @SpringBean(name = "contentSettings")
>    private ContentSettings contentSettings;
> 
>    @SpringBean(name = "learningItemRepository")
>    private LearningItemRepository learningItemRepository;
> 
>    public Viewer() {
> 
>        //add some simple components to the page
> 
>    }
> }
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to