On 5/1/06, Paul Cantrell <[EMAIL PROTECTED]> wrote:

I want to create a generic utility method to check whether a user is
logged in, and redirect them to a login page if necessary.

To do this, I need to create an ICallback in the general case. In
other words, I don't know whether I'm create an ExternalCallback or a
PageCallback or a DirectCallback or what have you. I just want to
create a callback for whatever the current request is, if such a
callback is possible.



This is funny, I just hit the same issue and have been frustrated myself
with the ICallback. I bet that 90% of tapestry apps have exactly the same
authentication requirement: on a page that requires authentication, check if
user is authenticated, if not redirect to a login page and after login go
back to the original page with the same context.

I believe that this could be all wired in the tapestry framework to make
people's life easier.

Thanks,

Henri.

Reply via email to