hrm. you cant yet. but you can check if you are in an ajax request or not by using webrequest.isajax() so you can implement that particular usecase without the page.
-igor On Thu, Nov 17, 2011 at 1:19 PM, Nelson Segura <[email protected]> wrote: > Hey, any idea how can I get the page/page class of the page that was > being rendered when the exception happened? > I was depending on that in 1.4 to determine the type of page I needed > to return, for example if I am in the context of a modal window, I was > showing a message in the window, and a close button. If I was in a > normal page, I was showing the full error page with errors et all. > I tried > > Class pageClass = > ((IPageClassRequestHandler)cycle.getActiveRequestHandler()).getPageClass(); > > But that throws an NPE > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
