mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
first pass on repeats.
- refactoring of schemaformbuilder to remove unnecessary methods/cleanup and modifications to get it to emit triggers that i need for insert at the top and insert after - implementation of ajax server side method for setting the repeat index and support for capturing and sending back event responses for all server requests. - implementation of client side repeat support: dom manipulation of repeat elements, identifying and relating widgets with model data, creating prototype clones, and support for some XFormsEvent (chiba-index-changed, chiba-item-inserted, chiba-prototype-cloned, chiba-id-generated) - changing background-colour to background-color in the dashlet. funny. - handling a null pointer exception in the errorbean when an error is thrown from the ajax stuff. - minor debugging enhancements in TemplatingService git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -308,16 +308,27 @@ public final class TemplatingService
|
||||
{
|
||||
try
|
||||
{
|
||||
System.out.println("writing out a document for " + n.getNodeName() +
|
||||
" to " + output);
|
||||
final TransformerFactory tf = TransformerFactory.newInstance();
|
||||
final Transformer t = tf.newTransformer();
|
||||
t.setOutputProperty(OutputKeys.INDENT, "yes");
|
||||
|
||||
if (LOGGER.isDebugEnabled())
|
||||
{
|
||||
LOGGER.debug("writing out a document for " +
|
||||
(n instanceof Document
|
||||
? ((Document)n).getDocumentElement()
|
||||
: n).getNodeName() +
|
||||
" to " + output);
|
||||
final StringWriter sw = new StringWriter();
|
||||
t.transform(new DOMSource(n), new StreamResult(sw));
|
||||
LOGGER.debug(sw.toString());
|
||||
}
|
||||
t.transform(new DOMSource(n), new StreamResult(output));
|
||||
}
|
||||
catch (TransformerException te)
|
||||
{
|
||||
te.printStackTrace();
|
||||
assert false : te.getMessage();
|
||||
assert false : te.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user