refactoring xforms js code. introducing an object model that will be helpful for implementing repeated elements.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3715 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-09-07 22:01:59 +00:00
parent 1c79ac48f4
commit b07ad8cfbe
3 changed files with 421 additions and 403 deletions

View File

@@ -175,6 +175,7 @@ public class OutputUtil
// set the mimetype and encoding
writer.setMimetype("text/html");
writer.setEncoding("UTF-8");
// put a loop to generate all output methods
TemplateOutputMethod tom = tt.getOutputMethods().get(0);
OutputStreamWriter out =
new OutputStreamWriter(writer.getContentOutputStream());
@@ -204,4 +205,4 @@ public class OutputUtil
throw e;
}
}
}
}

View File

@@ -79,7 +79,8 @@ public class XFormsInputMethod
// a script with config information and globals.
Element e = result.createElement("script");
e.appendChild(result.createTextNode("djConfig = { isDebug: false };\n" +
e.appendChild(result.createTextNode("djConfig = { isDebug: " + LOGGER.isDebugEnabled() +
" };\n" +
"var WEBAPP_CONTEXT = \"" + cp + "\";\n"));
div.appendChild(e);