s:select 里面的list報(bào)錯(cuò)
tag 'select', field 'list', name 'department.did': The requested list key 'list' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location] 報(bào)這個(gè)錯(cuò) ,說(shuō)list不能解析為容器?
2017-03-15
因?yàn)槔蠋熉┝艘欢未a沒(méi)說(shuō),在saveUI方法里面,如下
List<Department> list = departmentService.findAll();
ActionContext.getContext().getValueStack().set("list",list);
記得注入在配置文件里面注入departmentService
2017-03-13
為保存了還是報(bào)這個(gè)錯(cuò)
2016-11-12
前面忘了存list了