Is the annotation really necessary?  can't you use spring's injection
by type?  There will only be one HelloWorldService defined in the
spring configuration.

On 10/25/05, Stefan Arentz <[EMAIL PROTECTED]> wrote:
>
> On Oct 25, 2005, at 11:58 AM, Johan Compagner wrote:
>
> > if you want to create youre own page factory. And use
> > PagePArameters for everything to supply params back and forth you
> > are ofcourse free to do that right now.
>
> Better idea! Add some AOP and annotation magic to the mix!
>
>   public class HelloWorldWebPage extends WebPage
>   {
>       @SpringBeanReference("dutchHelloWorldService")
>       private transient HelloWorldService helloWorldService;
>
>       public void setHelloWorldService(HelloWorldService
> helloWorldService)
>       {
>           this.helloWorldService = helloWorldService;
>       }
>
>       public HelloWorldWebPage()
>       {
>           add(new Label("message", this.helloWorldService.getMessage
> ()));
>       }
>   }
>
> I'm using all standard Wicket classes. No weird mixing of Spring
> specific classes into the hierarchy.
>
> I think my integration is complete now :-)
>
> The code is a complex mess though. I'll clean this up and put it
> online so that others can look at it or play with it.
>
>   S.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.
> Get Certified Today * Register for a JBoss Training Course
> Free Certification Exam for All Training Attendees Through End of 2005
> Visit http://www.jboss.com/services/certification for more information
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to