public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  submitCycle=true;
  RMRealmModel model=(RMRealmModel)getModel();
  String realm=(String)getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
  AMPropertySheet ps=(AMPropertySheet)getChild(REALM_PROPERTIES);
  try {
    Map orig=model.getAttributeValues(realm);
    Map values=ps.getAttributeValues(orig,true,true,model);
    model.setAttributeValues(realm,values);
    setInlineAlertMessage(CCAlert.TYPE_INFO,"message.information","message.updated");
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
  }
  forwardTo();
}

public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { submitCycle = true ; RMRealmModel model = ( RMRealmModel ) getModel ( ) ; String realm = ( String ) getPageSessionAttribute ( AMAdminConstants . CURRENT_REALM ) ; AMPropertySheet ps = ( AMPropertySheet ) getChild ( REALM_PROPERTIES ) ; try { Map orig = model . getAttributeValues ( realm ) ; Map values = ps . getAttributeValues ( orig , true , true , model ) ; model . setAttributeValues ( realm , values ) ; setInlineAlertMessage ( CCAlert . TYPE_INFO , "message.information" , "message.updated" ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; } forwardTo ( ) ; }
handles save button request .
