getUtils().encodeAttribute(context, component, "class");
getUtils().encodePassThru(context, component);
context.getExternalContext().getRequestMap().put(
FORM_HAS_COMMAND_LINK_ATTR, clientId);
if (component instanceof UIAjaxForm) {
UIAjaxForm form = (UIAjaxForm) component;
if (form.isAjaxSubmit()) {
StringBuffer onSubmit = new StringBuffer("javascript:");
JSFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(
component, context,
AJAX_FORM_FUNCTION_NAME);
ajaxFunction.addParameter(AjaxRendererUtils.buildEventOptions(