diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/TestController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/TestController.java
index e4a79aba7..d6bd41130 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/TestController.java
+++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/TestController.java
@@ -69,6 +69,13 @@ public class TestController extends FreemarkerHttpServlet {
body.put("zoo1", zoo1);
body.put("zoo2", zoo2);
+ // Test recursive dump - array of arrays
+// String[] fruitArray = { "apples", "bananas", "strawberries" };
+// String[] animalArray = { "cat", "dog", "mouse" };
+// String[] dayArray = { "Monday", "Tuesday", "Wednesday" };
+// String[][] arrays = { fruitArray, animalArray, dayArray };
+// body.put("arrays", arrays);
+
body.put("trueStatement", true);
body.put("falseStatement", false);
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/directives/DumpDirective.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/directives/DumpDirective.java
index 0aaddb2d1..26484daff 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/web/directives/DumpDirective.java
+++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/web/directives/DumpDirective.java
@@ -54,7 +54,8 @@ public class DumpDirective implements TemplateDirectiveModel {
String includeTemplate;
Object value = val;
String type = null;
-
+ Writer out = env.getOut();
+
if (val instanceof SimpleScalar) {
includeTemplate = "dump-string.ftl";
type = "string";
@@ -70,6 +71,10 @@ public class DumpDirective implements TemplateDirectiveModel {
includeTemplate = "dump-array.ftl";
} else if (val instanceof SimpleHash) {
includeTemplate = "dump-hash.ftl";
+ // In recursive dump, we've gotten down to a raw string
+// } else if (val == null) {
+// out.write(var);
+// return;
} else {
includeTemplate = "dump-string.ftl";
value = value.toString();
@@ -83,11 +88,11 @@ public class DumpDirective implements TemplateDirectiveModel {
map.put("type", type);
map.put("stylesheets", dataModel.get("stylesheets"));
+ //map.put("dump", this);
FreemarkerHelper helper = new FreemarkerHelper();
String output = helper.mergeMapToTemplate(templateName, map, config);
-
- Writer out = env.getOut();
+
out.write(output);
}
diff --git a/webapp/web/css/dump.css b/webapp/web/css/dump.css
index 8f68fafcc..a6fc173e3 100644
--- a/webapp/web/css/dump.css
+++ b/webapp/web/css/dump.css
@@ -4,7 +4,11 @@
.dump {
border-top: 1px solid #ccc;
- border-bottom: 2px solid #ccc;
+ border-bottom: 3px solid #ccc;
padding: 1em 0;
margin: 1em 0;
}
+
+.dump li {
+ list-style-type: none;
+}
diff --git a/webapp/web/templates/freemarker/body/partials/dump/dump-array.ftl b/webapp/web/templates/freemarker/body/partials/dump/dump-array.ftl
index 8e7dcb9ae..630b61e21 100644
--- a/webapp/web/templates/freemarker/body/partials/dump/dump-array.ftl
+++ b/webapp/web/templates/freemarker/body/partials/dump/dump-array.ftl
@@ -6,6 +6,9 @@
Values: