Removing explicit wrapper specification when putting values in the template data model.

This commit is contained in:
rjy7 2010-11-18 23:29:32 +00:00
parent 32e2a1ae29
commit 9bd79b636d

View file

@ -70,19 +70,11 @@ public class N3EditFormController extends FreemarkerHttpServlet{
Map<String,Object> map = new HashMap<String,Object>(); Map<String,Object> map = new HashMap<String,Object>();
//This dosen't seem to be the right thing: map.put("editConfig", editConfig);
map.put("editConfig", ObjectWrapper.BEANS_WRAPPER.wrap(editConfig));
//<@dump var="editConfig"/> outputs:
/*
* Template variable dump
Variable name: editConfig
Type: string
Value: edu.cornell.mannlib.vitro.webapp.edit.n3editing.EditConfiguration@1e60601
*/
if( editSubmission != null) if( editSubmission != null)
map.put("editSubmission", ObjectWrapper.BEANS_WRAPPER.wrap(editSubmission)); map.put("editSubmission", editSubmission);
return map; return map;
} }
} }