public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  List optionData=restoreOptionsData();
  CCCheckBox cbForceResetPwd=(CCCheckBox)getChild(CB_FORCE_RESET_PWD);
  boolean forceResetPwd=cbForceResetPwd.isChecked();
  UMUserPasswordResetOptionsModel model=(UMUserPasswordResetOptionsModel)getModel();
  String userId=(String)getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
  try {
    model.modifyUserOption(optionData,userId,forceResetPwd);
    setInlineAlertMessage(CCAlert.TYPE_INFO,"message.information",model.getLocalizedString("profile.updated"));
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
  }
  forwardTo();
}

public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { List optionData = restoreOptionsData ( ) ; CCCheckBox cbForceResetPwd = ( CCCheckBox ) getChild ( CB_FORCE_RESET_PWD ) ; boolean forceResetPwd = cbForceResetPwd . isChecked ( ) ; UMUserPasswordResetOptionsModel model = ( UMUserPasswordResetOptionsModel ) getModel ( ) ; String userId = ( String ) getPageSessionAttribute ( EntityEditViewBean . UNIVERSAL_ID ) ; try { model . modifyUserOption ( optionData , userId , forceResetPwd ) ; setInlineAlertMessage ( CCAlert . TYPE_INFO , "message.information" , model . getLocalizedString ( "profile.updated" ) ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; } forwardTo ( ) ; }
handles save password options request .
