Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-7077

<mvc:annotation-driven /> doesn't allow CustomPropertyEditor be co-exists

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0 GA, 3.0.1, 3.0.2
    • Fix Version/s: None
    • Component/s: Web
    • Labels:
      None

      Description

      Although it is preferable to use conversionService rather than use the CustomEditor, in some situation, custom editor is still required (e.g. StringTrimmerEditor). The current AnnotationDrivenBeanDefinitionParser (used by MvcNamespaceHandler for <mvc:annotation-driven />) will create a ConfigurableWebBindingInitializer instance internally, which doesn't allow to register custom editors with propertyEditorRegistrars.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              simonwg Simon Wong
              Last updater:
              Spring Issuemaster
              Votes:
              7 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 30 weeks, 3 days ago