@Deprecated private static void makeJSForInlineSubmit(Appendable writer,Map<String,Object> context,ModelForm modelForm,String hiddenFormName) throws IOException {
  List<ModelFormField> rowSubmitFields=modelForm.getMultiSubmitFields();
  if (rowSubmitFields != null) {
    writer.append("<script type=\"text/javascript\">\r\n");
    writer.append("jQuery(document).ready(function() {\r\n");
    writer.append("\tvar submitForm = $(\"form[name=" + hiddenFormName + "]\");\r\n");
    writer.append("\tif (submitForm) {\r\n");
    for (    ModelFormField rowSubmitField : rowSubmitFields) {
      writer.append("\t\tvar id = $(\"[id^=" + rowSubmitField.getCurrentContainerId(context) + "]\");\r\n");
      writer.append("\t\t$(id).click(function(e) {\r\n");
      writer.append("\t\te.preventDefault();\r\n");
      makeHiddenFieldsForHiddenForm(writer);
      writer.append("\t\t\tsubmitForm.submit();\r\n");
      writer.append("\t\t});\r\n");
    }
    writer.append("\t} else {\r\n");
    writer.append("\t\treturn false;\r\n");
    writer.append("\t}\r\n");
    writer.append("});\r\n");
    writer.append("</script>\r\n");
  }
}

@ Deprecated private static void makeJSForInlineSubmit ( Appendable writer , Map < String , Object > context , ModelForm modelForm , String hiddenFormName ) throws IOException { List < ModelFormField > rowSubmitFields = modelForm . getMultiSubmitFields ( ) ; if ( rowSubmitFields != null ) { writer . append ( "<script type=\"text/javascript\">\r\n" ) ; writer . append ( "jQuery(document).ready(function() {\r\n" ) ; writer . append ( "\tvar submitForm = $(\"form[name=" + hiddenFormName + "]\");\r\n" ) ; writer . append ( "\tif (submitForm) {\r\n" ) ; for ( ModelFormField rowSubmitField : rowSubmitFields ) { writer . append ( "\t\tvar id = $(\"[id^=" + rowSubmitField . getCurrentContainerId ( context ) + "]\");\r\n" ) ; writer . append ( "\t\t$(id).click(function(e) {\r\n" ) ; writer . append ( "\t\te.preventDefault();\r\n" ) ; makeHiddenFieldsForHiddenForm ( writer ) ; writer . append ( "\t\t\tsubmitForm.submit();\r\n" ) ; writer . append ( "\t\t});\r\n" ) ; } writer . append ( "\t} else {\r\n" ) ; writer . append ( "\t\treturn false;\r\n" ) ; writer . append ( "\t}\r\n" ) ; writer . append ( "});\r\n" ) ; writer . append ( "</script>\r\n" ) ; } }
scipio : creates js script to populate the target hidden form with the corresponding fields of the row that triggered the submission ( only when use - submit - row is false )
