WebPages are serializable since they are stored in the session.  You first need to declare the private service member as transient in your WebPage since you do not want to store the service in session and since it is not serializable.  But if you do this, your injection will not work the way you have it.

On 10/22/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
Where/how is the mHelloWorldService injeted into the page?
-Igor


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] ] On Behalf Of
> Stefan Arentz
> Sent: Saturday, October 22, 2005 9:27 AM
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] My take on Spring integration
>
>
>
> On Oct 22, 2005, at 6:21 PM, Stefan Arentz wrote:
>
> Forget this part: Not sure from what paste-buffer that came,
> but it is wrong :-)
>
> > public class HelloWorld extends WebPage {
> >     public HelloWorld()
> >     {
> >         add(new Label("message", "Hello World!"));
> >     }
> >
> >     private HelloWorldService mHelloWorldService;
> >
> >     public HelloWorldService getHelloWorldService()
> >     {
> >         return mHelloWorldService;
> >     }
> >
> >     public void setHelloWorldService(HelloWorldService
> > helloWorldService)
> >     {
> >         mHelloWorldService = helloWorldService;
> >     }
> > }
>
> 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