2
컬렉션을 입력 데이터 형식 (표시 제외)에 바인딩 할 수있는 방법Spring 3 Collection Binding
컬렉션을 입력 데이터 형식 (표시 제외)에 바인딩 할 수있는 방법Spring 3 Collection Binding
이
에 Set<Jokers>
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
binder.registerCustomEditor(
Set.class,
"[nameOfTheClassMemberItShouldGoto]",
new CustomCollectionEditor(Set.class) {
protected Object convertElement(Object element) {
return (element == null ? null : getQueryService().getJoker(element.toString()));
}
}
);
}
또는 유사한 내가 같은 질문을했고, 멋진 솔루션을 가지고, 여기 좀 How to bind a list of object to SpringMvc Controller?
을