public void handleBtnNextRequest(RequestInvocationEvent event){
  PWResetUserValidationModel model=(PWResetUserValidationModel)getModel();
  String userAttrValue=(String)getDisplayFieldValue(TF_USER_ATTR);
  if (userAttrValue != null) {
    userAttrValue=userAttrValue.trim();
  }
  HiddenField hf=(HiddenField)getChild(FLD_USER_ATTR);
  String userAttrName=(String)hf.getValue();
  String orgDN=(String)getPageSessionAttribute(ORG_DN);
  String orgDNFlag=(String)getPageSessionAttribute(ORG_DN_FLAG);
  RequestContext reqContext=event.getRequestContext();
  ISLocaleContext localeContext=new ISLocaleContext();
  localeContext.setLocale(reqContext.getRequest());
  java.util.Locale localeObj=localeContext.getLocale();
  String locale=localeObj.toString();
  model.setUserLocale(locale);
  if (orgDNFlag != null && orgDNFlag.equals(STRING_TRUE)) {
    model.setRealmFlag(true);
  }
  if (userAttrValue == null || userAttrValue.length() == 0) {
    setErrorMessage(model.getErrorTitle(),model.getMissingUserAttrMessage(userAttrName));
    forwardTo();
  }
 else {
    if (model.isUserAttrValueValid(orgDN,userAttrValue) && model.isUserExists(userAttrValue,userAttrName,orgDN) && model.isUserActive(model.getUserRealm())) {
      forwardToPWResetQuestionVB(orgDN,userAttrValue,orgDNFlag,locale);
    }
 else {
      setErrorMessage(model.getErrorTitle(),model.getErrorMessage());
      forwardTo();
    }
  }
}

public void handleBtnNextRequest ( RequestInvocationEvent event ) { PWResetUserValidationModel model = ( PWResetUserValidationModel ) getModel ( ) ; String userAttrValue = ( String ) getDisplayFieldValue ( TF_USER_ATTR ) ; if ( userAttrValue != null ) { userAttrValue = userAttrValue . trim ( ) ; } HiddenField hf = ( HiddenField ) getChild ( FLD_USER_ATTR ) ; String userAttrName = ( String ) hf . getValue ( ) ; String orgDN = ( String ) getPageSessionAttribute ( ORG_DN ) ; String orgDNFlag = ( String ) getPageSessionAttribute ( ORG_DN_FLAG ) ; RequestContext reqContext = event . getRequestContext ( ) ; ISLocaleContext localeContext = new ISLocaleContext ( ) ; localeContext . setLocale ( reqContext . getRequest ( ) ) ; java . util . Locale localeObj = localeContext . getLocale ( ) ; String locale = localeObj . toString ( ) ; model . setUserLocale ( locale ) ; if ( orgDNFlag != null && orgDNFlag . equals ( STRING_TRUE ) ) { model . setRealmFlag ( true ) ; } if ( userAttrValue == null || userAttrValue . length ( ) == 0 ) { setErrorMessage ( model . getErrorTitle ( ) , model . getMissingUserAttrMessage ( userAttrName ) ) ; forwardTo ( ) ; } else { if ( model . isUserAttrValueValid ( orgDN , userAttrValue ) && model . isUserExists ( userAttrValue , userAttrName , orgDN ) && model . isUserActive ( model . getUserRealm ( ) ) ) { forwardToPWResetQuestionVB ( orgDN , userAttrValue , orgDNFlag , locale ) ; } else { setErrorMessage ( model . getErrorTitle ( ) , model . getErrorMessage ( ) ) ; forwardTo ( ) ; } } }
handles form submission request
