what i am doing is

@Inject
private Response response;

boolean beginRender(){

   if( isRedirectNeeded() ) {
            try { response.sendRedirect("") } catch (Exception e) {}
            return false;
   }

}



Travis McLeskey wrote:
In a page, you can listen for the "activate" event and, for example, if the user doesn't have permission to view that page, you can return a value (Page, Class, String, etc.) that triggers a redirect to another page.

Is it possible to do the same when a component is loading/rendering? Components don't receive the "activate" event, and I haven't had any luck returning a page object from setupRender() and beginRender().

Thanks,
Travis


---------------------------------------------------------------------
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]

Reply via email to