From c8368dbe2dbb6dffa95446538dd10b1d6e5ef519 Mon Sep 17 00:00:00 2001 From: Jim Blake Date: Mon, 3 Nov 2014 15:09:43 -0500 Subject: [PATCH] Produce the pick-lists for range and domain. Still not submitting the results. --- .../cornell/mannlib/vedit/util/FormUtils.java | 37 ++- .../edit/FauxPropertyRetryController.java | 247 ++++++++++++------ .../edit/specific/fauxProperty_retry.jsp | 12 +- 3 files changed, 210 insertions(+), 86 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vedit/util/FormUtils.java b/webapp/src/edu/cornell/mannlib/vedit/util/FormUtils.java index 77e8fdefb..3b50449ac 100644 --- a/webapp/src/edu/cornell/mannlib/vedit/util/FormUtils.java +++ b/webapp/src/edu/cornell/mannlib/vedit/util/FormUtils.java @@ -6,23 +6,27 @@ import java.lang.reflect.Method; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Arrays; +import java.util.Collections; +import java.util.Comparator; import java.util.Date; import java.util.HashMap; +import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Set; import org.apache.commons.codec.binary.Base64; -import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import edu.cornell.mannlib.vedit.beans.EditProcessObject; import edu.cornell.mannlib.vedit.beans.FormObject; import edu.cornell.mannlib.vedit.beans.Option; -import edu.cornell.mannlib.vitro.webapp.beans.Ontology; import edu.cornell.mannlib.vitro.webapp.beans.VClass; +import edu.cornell.mannlib.vitro.webapp.dao.VClassDao; import edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory; public class FormUtils { @@ -247,6 +251,35 @@ public class FormUtils { } return vclassOptionList; } + + public static List