using browser based xpath (for now just mozilla). fixes a combobox bug where i wasn't evaluating an xpath:constraint, and allows reading back model data with more complicated xpaths (such as repeater data).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3819 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-09-18 11:01:53 +00:00
parent e1a92d2983
commit 97ea14c605
2 changed files with 58 additions and 57 deletions

View File

@@ -83,26 +83,23 @@ public class XFormsInputMethod
" };\n" +
"var WEBAPP_CONTEXT = \"" + cp + "\";\n"));
div.appendChild(e);
final String[] scripts =
{
"/scripts/tiny_mce/tiny_mce_src.js",
"/scripts/ajax/dojo.js",
"/scripts/ajax/xforms.js"
};
// include all our scripts, order is significant
e = result.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", cp + "/scripts/tiny_mce/tiny_mce_src.js");
e.appendChild(result.createTextNode("\n"));
div.appendChild(e);
for (int i = 0; i < scripts.length; i++)
{
e = result.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", cp + scripts[i]);
e.appendChild(result.createTextNode("\n"));
div.appendChild(e);
}
e = result.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", cp + "/scripts/ajax/dojo.js");
e.appendChild(result.createTextNode("\n"));
div.appendChild(e);
e = result.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", cp + "/scripts/ajax/xforms.js");
e.appendChild(result.createTextNode("\n"));
div.appendChild(e);
ts.writeXML(result, out);
}