public void handleButton2Request(RequestInvocationEvent event) throws ModelControlException {
  IDRepoModel model=(IDRepoModel)getModel();
  String idRepoName=(String)propertySheetModel.getValue(IDRepoModel.TF_NAME);
  idRepoName=idRepoName.trim();
  String idRepoType=(String)propertySheetModel.getValue(ATTR_IDREPO_TYPE);
  if (idRepoName.length() > 0) {
    IDRepoAddViewBean vb=(IDRepoAddViewBean)getViewBean(IDRepoAddViewBean.class);
    setPageSessionAttribute(IDRepoAddViewBean.IDREPO_NAME,idRepoName);
    setPageSessionAttribute(IDRepoAddViewBean.IDREPO_TYPE,idRepoType);
    unlockPageTrailForSwapping();
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
  }
 else {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error","idrepo.missing.idRepoName");
    forwardTo();
  }
}

public void handleButton2Request ( RequestInvocationEvent event ) throws ModelControlException { IDRepoModel model = ( IDRepoModel ) getModel ( ) ; String idRepoName = ( String ) propertySheetModel . getValue ( IDRepoModel . TF_NAME ) ; idRepoName = idRepoName . trim ( ) ; String idRepoType = ( String ) propertySheetModel . getValue ( ATTR_IDREPO_TYPE ) ; if ( idRepoName . length ( ) > 0 ) { IDRepoAddViewBean vb = ( IDRepoAddViewBean ) getViewBean ( IDRepoAddViewBean . class ) ; setPageSessionAttribute ( IDRepoAddViewBean . IDREPO_NAME , idRepoName ) ; setPageSessionAttribute ( IDRepoAddViewBean . IDREPO_TYPE , idRepoType ) ; unlockPageTrailForSwapping ( ) ; passPgSessionMap ( vb ) ; vb . forwardTo ( getRequestContext ( ) ) ; } else { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , "idrepo.missing.idRepoName" ) ; forwardTo ( ) ; } }
handles next button request .
