denying user from loading a page
Hi,
Is there a way for me to abort the loading of a page (ie, if they do not have permission to view it)? As a wild guess I unsuccessfully tried:
if (<admin check here>)
{
super.destory();
destroy();
}
It did not work.
Any ideas?
Thanks!
[389 byte] By [
aperson] at [2007-11-26 11:54:03]

# 2
Not sure I understand what you are actually attempting to accomplish, but you can easily check in either the preprocess() (page has been posted but no processing has taken place) or you could do the test in the prerender(), or even init() if you want to handle the incoming http directly.You should just redirect the user to a 'the page you requested is not available'. You need to provide some kind of response to the browser, even if you send a '404 forbidden' directly. Don't forget to stop the Faces processing if you send a non-faces response.