|
I have extended BasePage to create
SecurePage. SecurePage
simply implements validate to check that the Visit is authenticated. For some reason it seems that sometimes the visit object is
null during validate, and at other times it is not. Why is this? public void
validate( IRequestCycle cycle ) throws RequestCycleException {
Visit visit = (Visit) cycle.getPage().getVisit(); if( ! visit.isAuthenticated() ) {
throw new PageRedirectException(
"You are not authorized to view this page.", "SecurityFailure" ); } } Thanks in advance Luke Galea Software Development 905-762-5225 |
