On 8/24/07, Robin Helgelin <[EMAIL PROTECTED]> wrote:>
> To ask your second question, the code tapestry5-acegi uses to wrap
> around the class is found here in this service:
> <http://www.localhost.nu/svn/public/tapestry5-acegi/trunk/src/main/java/nu/localhost/tapestry/acegi/services/internal/AcegiWorker.java>

Thanks for the info. I had been studying the code for a while. I
didn't look at that class much because I assumed from its title it was
dealing with the acegi library work rather than the tapestry side of
things. I should have known better than to assume things from class
names :)

What I want to do is have a SecuredPage annotation, which can be added
to any page class. Then before any page annotated with SecuredPage is
run, it calls a method that decides wither or not to redirect the user
to another page, bassed on there login info from the Application
State.

I have made my own worker class, annotation and service. I understand
the acegi worker class except for the transform page part. I can't
work out how its managing to change the page. Its clearly modifying a
method but, I cant really work out how.

The other thing I was struggling with is, how I actually integrate the
worker in to my service. I have a RequestFilter working from AppModule
which is executed for every request. But how do I use the worker class
I have just created? I could just call the transform method, but where
do I get the ClassTransformation object from. I assume there is some
correct way to apply a ComponentClassTransformWorker to a component>

Any help / suggestions would be really appreciated.

Charlie M

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

Reply via email to