0
我已经成功实现了AutoPopulatingList。我有一个JavaScript递增ID和背景春天正在创建我的漂亮列表。从AutoPopulatingList中删除项目
我遇到了一些问题,删除项目顺便说一句。我正在使用向导控制器,并试图“回去”并删除一些项目。然后,前进......惊喜!物品还在那里!
那么,我该如何强制Spring每次创建一个新的AutoPopulatingList?或者我错过了什么?
这是我的名单与工厂:
private AutoPopulatingList<Event> events = new AutoPopulatingList<Event>(new EventElementFactory());
public class EventElementFactory implements ElementFactory {
@Override
public Event createElement(int index) throws ElementInstantiationException {
Event e = new Event();
e.setModContr("");
e.setDesc("");
return e;
}
}
,我已经这个initBinder控制器(不知道为什么,但它并非没有工作):
binder.setAutoGrowNestedPaths(false);
谢谢!