var $AdfDhtmlFormPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlFormPeer");
$goog$exportSymbol$$("AdfDhtmlFormPeer", $AdfDhtmlFormPeer$$);
$AdfDhtmlFormPeer$$.$InitSubclass$ = function $$AdfDhtmlFormPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addSuppressedPPRAttributes$(this, "defaultCommand");
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$)
};
$goog$exportSymbol$$("AdfDhtmlFormPeer.InitSubclass", $AdfDhtmlFormPeer$$.$InitSubclass$);
$AdfDhtmlFormPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlFormPeer$$$$$DomReplaceNotify$$($domNode$$24$$) {
  var $clientId$$149_postscriptId$$ = this.$getComponent$().$getClientId$(), $clientId$$149_postscriptId$$ = $AdfRichUIPeer$$.$createSubId$($clientId$$149_postscriptId$$, "postscript");
  return $domNode$$24$$.id == $clientId$$149_postscriptId$$ ? $JSCompiler_alias_NULL$$ : $domNode$$24$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlFormPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlFormPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlFormPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlFormPeer$$$$$InitDomElement$$($component$$753$$, $rootElement$$33$$) {
  $AdfDhtmlFormPeer$$.$superclass$.$InitDomElement$.call(this, $component$$753$$, $rootElement$$33$$);
  var $window$$5$$ = $AdfPage$$.$PAGE$.$getDomWindow$(), $func$$15$$ = new Function("return true;");
  $window$$5$$["_" + $component$$753$$.$getClientId$() + "Validator"] = $func$$15$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlFormPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlFormPeer$$.prototype.$InitDomElement$});
$AdfDhtmlFormPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlFormPeer$$$$$HandleComponentKeyPress$$($componentEvent$$135_defaultCommandOnComp_id$$279$$) {
  if($componentEvent$$135_defaultCommandOnComp_id$$279$$.$getKeyCode$() == $AdfKeyStroke$$.$ENTER_KEY$ && ($componentEvent$$135_defaultCommandOnComp_id$$279$$ = $AdfDhtmlFormPeer$$.$__GetDefaultCommandTriggerId$($componentEvent$$135_defaultCommandOnComp_id$$279$$, $JSCompiler_alias_TRUE$$), $componentEvent$$135_defaultCommandOnComp_id$$279$$ != $JSCompiler_alias_NULL$$)) {
    $componentEvent$$135_defaultCommandOnComp_id$$279$$ = $AdfDhtmlSubformPeer$$.$getDefaultCommandSubform$($componentEvent$$135_defaultCommandOnComp_id$$279$$);
    var $defaultCommandId$$;
    $componentEvent$$135_defaultCommandOnComp_id$$279$$ || ($componentEvent$$135_defaultCommandOnComp_id$$279$$ = this.$getComponent$());
    if($defaultCommandId$$ = $componentEvent$$135_defaultCommandOnComp_id$$279$$.getDefaultCommand()) {
      var $defaultCommand$$ = $componentEvent$$135_defaultCommandOnComp_id$$279$$.$findComponent$($defaultCommandId$$);
      $defaultCommand$$ ? $defaultCommand$$.$getPeer$().$isBusy$() || $AdfActionEvent$$.$queue$($defaultCommand$$, $defaultCommand$$.getPartialSubmit()) : $AdfLogger$$.$LOGGER$.warning("DefaultCommand with the ID of '" + $defaultCommandId$$ + "' is not found for component: " + $componentEvent$$135_defaultCommandOnComp_id$$279$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlFormPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlFormPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlFormPeer$$.$__GetDefaultCommandTriggerId$ = function $$AdfDhtmlFormPeer$$$$__GetDefaultCommandTriggerId$$($componentEvent$$136$$, $cancelEvent$$1$$) {
  var $idNode_nativeTarget$$2$$ = $componentEvent$$136$$.$getNativeEventTarget$();
  if($idNode_nativeTarget$$2$$) {
    var $id$$280_tagName$$5$$ = $idNode_nativeTarget$$2$$.tagName;
    if("A" == $id$$280_tagName$$5$$ || "BUTTON" == $id$$280_tagName$$5$$ || "TEXTAREA" == $id$$280_tagName$$5$$ || "IFRAME" == $id$$280_tagName$$5$$ || "INPUT" == $id$$280_tagName$$5$$ && ("submit" == $idNode_nativeTarget$$2$$.type || "reset" == $idNode_nativeTarget$$2$$.type)) {
      return $JSCompiler_alias_NULL$$
    }
    "SELECT" != $id$$280_tagName$$5$$ && $cancelEvent$$1$$ && $componentEvent$$136$$.cancel();
    for($id$$280_tagName$$5$$ = $idNode_nativeTarget$$2$$.id;!$id$$280_tagName$$5$$;) {
      $idNode_nativeTarget$$2$$ = $idNode_nativeTarget$$2$$.parentNode, $id$$280_tagName$$5$$ = $idNode_nativeTarget$$2$$.id
    }
    return $id$$280_tagName$$5$$
  }
  return $JSCompiler_alias_NULL$$
};
