Removing explicit wrapper specification when putting values in the template data model.
This commit is contained in:
parent
32e2a1ae29
commit
9bd79b636d
1 changed files with 6 additions and 14 deletions
|
@ -68,21 +68,13 @@ public class N3EditFormController extends FreemarkerHttpServlet{
|
||||||
private Map<String, Object> makeEditDataMap(EditConfiguration editConfig,
|
private Map<String, Object> makeEditDataMap(EditConfiguration editConfig,
|
||||||
EditSubmission editSubmission) throws TemplateModelException {
|
EditSubmission editSubmission) throws TemplateModelException {
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue