Sent: Wednesday, 31 March, 2010 22:59:19 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: How to get the Component inside advice?
Chances are your instanceof is failing because you put the SecurePage
interface into the pages or components package; move it up a level, to
a non
}
invocation.proceed();
} // end advice method of inner class
}; // end inner class
receiver.adviseAllMethods(advice);
}
--
View this message in context:
http://old.nabble.com/How-to-get-the-Component-inside-advice--tp28100055p28100055.html
Sent from the Tapestry - User
On Wed, 31 Mar 2010 15:37:36 -0300, satb satish...@yahoo.com wrote:
I am trying to get the component inside an advice and if the page
invoked isextends SecurePage, then I have to check the security
credentials on that request.
A way better way of doing it is to implement a
the
above advice is trying to do except the instaceof check is always
returning false.
I guess what is causing some concern to me is -- why would component
instanceof SecurePage return false?
--
View this message in context:
http://old.nabble.com/How-to-get-the-Component-inside-advice
On Wed, 31 Mar 2010 16:31:17 -0300, satb satish...@yahoo.com wrote:
Advice is for services, not pages and components.
Thanks for the response.
Yes. That is true. I want to do one other thing on the methods of the
service if the request is originating from a SecurePage -- which is to
check
is always
returning false.
I guess what is causing some concern to me is -- why would component
instanceof SecurePage return false?
--
View this message in context:
http://old.nabble.com/How-to-get-the-Component-inside-advice--tp28100055p28100745.html
Sent from the Tapestry - User mailing list