Hmm, I'm using the @InjectObject to inject spring
beans and it's working great. Are you using the
tapestry-spring.jar file from that sourceforge project
referenced on the wiki? That's what I'm doing. Just
dropped it in and it worked as advertised.
--- Dennis Cieplik <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I'm evaluating TP4. Looks great! But I ran into a
> problem with the
> @InjectObject annotation. I could access the spring
> context via:
>
> <inject property="AssetDAO"
> object="spring:AssetDAO"/>
>
> So the setup of spring seems to be working. But I
> need to access it in the
> component/page class like:
>
> @InjectObject("spring:AssetDAO")
> public abstract AssetDAO getAssetDAO();
>
> This code throws a
> java.lang.IllegalArgumentException:
> Unable to instantiate instance of class $Anno_15
> using constructor public
> ....
> argument type mismatch
>
> I tried tapestry beta 1 through 3 with spring 1.2.2
> without any success. I
> assume I overlook a fault, but I can't figure it
> out. Should I provide the
> whole stacktrace and/or more information?
>
> Thanks
>
> Dennis
>
> --
> 5 GB Mailbox, 50 FreeSMS
> http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse f�r Mail, Message,
> More +++
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]