I tried @Inject Session session; but it didn't work.
....

you probably have an error in log from tapestry demanding for the field to
be private...

try:
@Inject private Session session;

Davor Hrg

On 5/30/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:

I found that the @Service annotation is not available anymore in
tapestry-core-5.0.4

So how do I inject a service that was created by the AppModule into my web
Page/Component ?

Let's say the Session service created by the tapestry-hibernate module.

I tried @Inject Session session; but it didn't work.

Have I missed on something?


Thanks in advance.

On 5/30/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> You don't need the MANIFEST.MF.
>
> You do need to name your module correctly, it should be AppModule.  The
> documention is *very clear* on the naming for that.
>
> Also, you should consider letting Tapestry IoC inject the Log (
> org.apache.commons.logging.Log) for your service; cleans up a lot of
code
> that way.
>
> This will be

--
YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/

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


Reply via email to