On 10/2/07, T. Papke <[EMAIL PROTECTED]> wrote:
> Hi,

Hi!

> i have tried the tapestry 5 acegi example providing security controll
> for tapestry pages.
>
> I need the hostname of the requested url for getting the user by
> username. So i want to have the username per page.
>
> I have tried it with RequestGlobals, but it did not work to inject it
> into this service? Anyone an idea?

How do you inject it? @Inject on members only works on page and
component classes. You need to add RequestGlobals to the constructor
as Session is done, and depending on how you define your service in
AppModule inject the RequestGlobals there.

> public class UserDetailsServiceImpl implements UserDetailsService {
>     private final Session session;
>     public UserDetailsServiceImpl(Session session) {
>         this.session = session;
>     }

-- 
        regards,
        Robin

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

Reply via email to