public static Page getCurrentPage ( ) { final IRequestHandler requestHandler = RequestCycle . get ( ) . getActiveRequestHandler ( ) ; final Page page = getPage ( requestHandler ) ; if ( page != null ) { return page ; } if ( requestHandler instanceof RequestSettingRequestHandler ) { final RequestSettingRequestHandler requestSettingRequestHandler = ( RequestSettingRequestHandler ) requestHandler ; return getPage ( requestSettingRequestHandler . getDelegateHandler ( ) ) ; } return null ; }
Gets the current page .