That would be neat. Another option would be to create a parent page and
have other pages extend it. For example:
public abstract class SecurePage extends BasePage implements
SomePageListener {
...
}
public abstract class MyPage extends SecurePage
{
..
}
Every time MyPage gets rendered, the listener from SecurePage gets
called. Take a look at PageValidateListener as well...
hth,
Dennis
karthik G wrote:
I just want to add an annotation on the page and then take some action when
the page is being bound to a request from the page pool.
@SecuredPage
abstract class MyPage extends BasePage{
}
Is there anyways i can hook into T4's page creation process and then
depending upon the annotation take some action? For e.g in the above
case, I
just want to be able to check for a user object in the session and redirect
to login page.
I looked at PageAttachListener and it looks nice. But I dont want to
implement that in my page but would like to attach a listener to T4 itself.
thanks,
Karthik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]