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.
Ideally, there would be a IPage.getCallback() method, or something
like it -- but I can't find one.
I did find some code on the mailing list involving things like "if
(this instanceof IExternalPage)" ... yuck! Surely there's a better
way, and I'm just missing it? I've dug around in the docs and list
archives, but can't turn anything up. ICallback isn't even mentioned
in the user guide, as far as I can tell....
Cheers,
Paul
_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]