/** * {@inheritDoc} */ @Override public boolean disposeModalDialog(RComponent sourceWidget, Map<String, Object> context) { if (super.disposeModalDialog(sourceWidget, context)) { registerCommand(new RemoteCloseDialogCommand()); transferFocus(context); return true; } return false; }
/** * Logs into the application. */ @Override public void login() { boolean loginInteractive = isLoginInteractive(); if (performLogin()) { if (loginInteractive) { registerCommand(new RemoteCloseDialogCommand()); } List<RemoteCommand> initCommands = createInitCommands(); for (RemoteCommand initCommand : initCommands) { registerCommand(initCommand); } userLoggedIn(); clearRequestParams(); } else { loginFailed(); } }