modified to display an Other option in the select list

This commit is contained in:
tworrall 2012-05-10 19:02:56 +00:00
parent 39590ec936
commit 7560e66cf8

View file

@ -46,7 +46,9 @@ public class ChildVClassesWithParent implements FieldOptions {
// first test to see whether there's a default "leave blank" value specified with the literal options // first test to see whether there's a default "leave blank" value specified with the literal options
if ( ! StringUtils.isEmpty( defaultOptionLabel ) ){ if ( ! StringUtils.isEmpty( defaultOptionLabel ) ){
optionsMap.put(LEFT_BLANK, defaultOptionLabel); optionsMap.put(LEFT_BLANK, defaultOptionLabel);
} }
optionsMap.put(classUri, "Other");
VClassDao vclassDao = wDaoFact.getVClassDao(); VClassDao vclassDao = wDaoFact.getVClassDao();
List<String> subClassList = vclassDao.getAllSubClassURIs(classUri); List<String> subClassList = vclassDao.getAllSubClassURIs(classUri);