List of usage examples for org.springframework.beans BeanWrapperImpl registerCustomEditor
@Override public void registerCustomEditor(@Nullable Class<?> requiredType, @Nullable String propertyPath, PropertyEditor propertyEditor)
From source file:org.sakaiproject.metaobj.utils.mvc.impl.BeanWrapperBase.java
protected BeanWrapperImpl createNestedWrapper(String parentPath, String nestedProperty) { BeanWrapperImpl nextWrapper = null;//from w ww .j av a2 s. c om nextWrapper = constructWrapper(this.getPropertyValue(nestedProperty), parentPath + NESTED_PROPERTY_SEPARATOR + nestedProperty); nestedBeanWrappers.put(nestedProperty, nextWrapper); for (Iterator i = customEditors.iterator(); i.hasNext();) { CustomEditorHolder holder = (CustomEditorHolder) i.next(); nextWrapper.registerCustomEditor(holder.requiredType, holder.propertyPath, holder.propertyEditor); } return nextWrapper; }