For @InjectObject, Tapestry creates a constructor.  The object is
obtained when the enhanced subclass is fabricated. This object is
retained and provided to each page instance via the constructor.

Your (base class) constructor is (implicitly) executed before the
fabricated subclass constructor, so the injected object isn't visible
there.

On 7/8/05, Adam Czysciak <[EMAIL PROTECTED]> wrote:
> Hi,
> 
>   I @InjectObject, the spring bean. When is it created? When I access the
> getter in constructor, I get null. When I access it later, I get the bean
> correctly. Is there any way the bean can be initialized before the
> constructor begins?
> 
> --
> Greets,
>   Adam Czysciak
>   [EMAIL PROTECTED]
>   Sun Certified Programmer for the Java 2 Platform, SE 5
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to