NdsBeisUi/src/main/java/com/northgateps/nds/beis/ui/controller/handler/DashboardEventHandler.java
/**
     * If we have detected a partial registration then go to the start of registration
     */
If we have detected a partial registration then go to the start of registration
If we have detected a partial registration then go to the start of registration
@Override
    public void onAfterNavigationUpdate(NdsFormModel model, ControllerState<?> controllerState) {
        logger.trace("onAfterNavigationUpdate Entry");
        final BeisAllModel beisModel = (BeisAllModel) model;
        final UiData uiData = (UiData)beisModel.getUiData();
        if (uiData.getRegistrationStatus() != null 
                && uiData.getRegistrationStatus() == RegistrationStatusType.FOUND_PARTIALLY_REGISTERED) {
            logger.trace("onAfterNavigationUpdate partial registration detected");
            controllerState.getPageFlowEngine().updateNavigationalState((AbstractNdsMvcModel) model, "select-landlord-or-agent");
            /*
             * Since we're changing the page to show on a GET request (redirect from the login system), 
             * the refresh page preservation Javascript code may activate to replace the viewstate.
             * We don't want that, as it makes the flow controller show the site's first page again, rather than
             * select-landlord-or-agent.  Setting this to true skips the check altogether.
             */
            controllerState.setSkipRefreshPagePreservation(true);
        }
        logger.trace("onAfterNavigationUpdate Exit");
    }
@ Override public void onAfterNavigationUpdate ( NdsFormModel model , ControllerState < ? > controllerState ) { logger . trace ( "onAfterNavigationUpdate Entry" ) ; final BeisAllModel beisModel = ( BeisAllModel ) model ; final UiData uiData = ( UiData ) beisModel . getUiData ( ) ; if ( uiData . getRegistrationStatus ( ) != null && uiData . getRegistrationStatus ( ) == RegistrationStatusType . FOUND_PARTIALLY_REGISTERED ) { logger . trace ( "onAfterNavigationUpdate partial registration detected" ) ; controllerState . getPageFlowEngine ( ) . updateNavigationalState ( ( AbstractNdsMvcModel ) model , "select-landlord-or-agent" ) ; /*
             * Since we're changing the page to show on a GET request (redirect from the login system), 
             * the refresh page preservation Javascript code may activate to replace the viewstate.
             * We don't want that, as it makes the flow controller show the site's first page again, rather than
             * select-landlord-or-agent.  Setting this to true skips the check altogether.
             */ controllerState . setSkipRefreshPagePreservation ( true ) ; } logger . trace ( "onAfterNavigationUpdate Exit" ) ; }
If we have detected a partial registration then go to the start of registration
If we have detected a partial registration then go to the start of registration
//Only need to do this if we are partially registered.