// the sessionflag is handled and removed in root-tag
request.getSession().setAttribute(sessionKey + ".event.SessionWasNew", new Boolean(true));
}
// create action definition
AjaxActionDefinition actionDef = new AjaxActionDefinition(formaction, ajaxcallid);
actionDef.setTmlformSessionKey(sessionKey);
if (ajaxgraydiv != null && !ajaxgraydiv.equals("#null#")) {
actionDef.setGraydiv(Boolean.valueOf(ajaxgraydiv).booleanValue());
}
if (ajaxmode != null && !ajaxmode.equals("#null#")) {
actionDef.setMode(ajaxmode);
}
// render response
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.write("<script type=\"text/javascript\">");
out.write("parent.WGA.ajax.formCallback(" + actionDef.toJavaScriptObject() + ");");
out.write("</script>");
}
}
catch (FileUploadException e) {
getCore().getLog().error("Error parsing multipart-data from ajaxcall: " + e.getMessage());