public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  submitCycle=true;
  String subConfigName=(String)getDisplayFieldValue(ATTR_SUBCONFIG_NAME);
  SubConfigModel model=(SubConfigModel)getModel();
  try {
    AMPropertySheet ps=(AMPropertySheet)getChild(PROPERTY_ATTRIBUTE);
    String schemaName=(String)getPageSessionAttribute(AMServiceProfile.PG_SESSION_SUB_SCHEMA_NAME);
    Map values=ps.getAttributeValues(model.getAttributeNames(schemaName));
    model.createSubConfig(subConfigName,schemaName,values);
    backToProfileViewBean();
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
    forwardTo();
  }
}

public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { submitCycle = true ; String subConfigName = ( String ) getDisplayFieldValue ( ATTR_SUBCONFIG_NAME ) ; SubConfigModel model = ( SubConfigModel ) getModel ( ) ; try { AMPropertySheet ps = ( AMPropertySheet ) getChild ( PROPERTY_ATTRIBUTE ) ; String schemaName = ( String ) getPageSessionAttribute ( AMServiceProfile . PG_SESSION_SUB_SCHEMA_NAME ) ; Map values = ps . getAttributeValues ( model . getAttributeNames ( schemaName ) ) ; model . createSubConfig ( subConfigName , schemaName , values ) ; backToProfileViewBean ( ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; forwardTo ( ) ; } }
handles next button request .
