mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
hacking up output paths within the avm for the virgin demo.
refixed the fix for making captions look good in the form turned off debugging within the form. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3571 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -67,11 +67,11 @@ public class XFormsInputMethod
|
||||
final Document result = ts.newDocument();
|
||||
final Element div = result.createElement("div");
|
||||
div.setAttribute("id", "alf-ui");
|
||||
div.setAttribute("style", "width: 100%; border: solid 1px orange;");
|
||||
div.setAttribute("style", "width: 100%; border: solid 0px orange;");
|
||||
result.appendChild(div);
|
||||
|
||||
Element e = result.createElement("script");
|
||||
e.appendChild(result.createTextNode("djConfig = { isDebug: true };\n" +
|
||||
e.appendChild(result.createTextNode("djConfig = { isDebug: false };\n" +
|
||||
"var WEBAPP_CONTEXT = \"" + cp + "\";\n"));
|
||||
div.appendChild(e);
|
||||
e = result.createElement("script");
|
||||
|
@@ -81,16 +81,22 @@ public class BaseSchemaFormBuilder
|
||||
// if the word is all upper case, then set to lower case and continue
|
||||
if (text.equals(text.toUpperCase()))
|
||||
text = text.toLowerCase();
|
||||
String[] s = text.split("/[-_\\ ]/");
|
||||
String[] s = text.split("[-_\\ ]");
|
||||
StringBuffer result = new StringBuffer();
|
||||
for (int i = 0; i < s.length; i++)
|
||||
{
|
||||
if (i != 0)
|
||||
result.append(' ');
|
||||
result.append(Character.toUpperCase(s[i].charAt(0)) +
|
||||
s[i].substring(1, s[i].length() - 1));
|
||||
if (s[i].length() > 1)
|
||||
{
|
||||
result.append(Character.toUpperCase(s[i].charAt(0)) +
|
||||
s[i].substring(1, s[i].length()));
|
||||
}
|
||||
else
|
||||
{
|
||||
result.append(s[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user