This is 4.x. My presumption at this point is that all issues are 4.x
unless explicitly stated otherwise; perhaps that is a bad
presumption. Obviously many people are still on 3.x, but 4.x has been
out for a good while now, and in my mind, it's the default for
discussion on the list. If somebody is still on 3.x, they should make
a point of that.
Still, I should have mentioned that I'm on 4.0.1; sorry!
Cheers, P
On May 1, 2006, at 2:57 PM, Mark Stang wrote:
I was wondering if this was a 4.x or a 3.x issue. Then it occurred
to me that we should probably break the list up into 3 and 4.
-----Original Message-----
From: Paul Cantrell [mailto:[EMAIL PROTECTED]
Sent: Sun 4/30/2006 10:50 PM
To: Tapestry users
Subject: Generic creation of an ICallback: surely there's a better
way?
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]
_________________________________________________________________
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]