public void changePassword() {

        final String oldPassword = m_oldPassword.getFormValueAsString();
        final String newPassword1 = m_newPassword1.getFormValueAsString();
        final String newPassword2 = m_newPassword2.getFormValueAsString();

        CmsRpcAction<String> action = new CmsRpcAction<String>() {

            @Override
            public void execute() {

                start(0, true);
                CmsCoreProvider.getService().changePassword(oldPassword, newPassword1, newPassword2, this);
            }

            @Override
            public void onResponse(String result) {

                stop(false);
                if (result == null) {
                    m_finishAction.run();
                } else {
                    showError(result);
                }
            }
        };
        action.execute();
    }
public void changePassword ( ) { final String oldPassword = m_oldPassword . getFormValueAsString ( ) ; final String newPassword1 = m_newPassword1 . getFormValueAsString ( ) ; final String newPassword2 = m_newPassword2 . getFormValueAsString ( ) ; CmsRpcAction < String > action = new CmsRpcAction < String > ( ) { @ Override public void execute ( ) { start ( 0 , true ) ; CmsCoreProvider . getService ( ) . changePassword ( oldPassword , newPassword1 , newPassword2 , this ) ; } @ Override public void onResponse ( String result ) { stop ( false ) ; if ( result == null ) { m_finishAction . run ( ) ; } else { showError ( result ) ; } } } ; action . execute ( ) ; }
Tries to change the password using the data entered by the user.<p>