<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=guru_simpa" rel="nofollow">Gurpreet Singh</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3410?redirect=false" rel="nofollow">SPR-3410</a></strong> and commented</p>
<p dir="auto">The xml shown in section 3.2.1.1 of documentation is missing the following text "<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>" in xsi:schemaLocation attribute of beans tag. If we try this xml, we get org.xml.sax.SAXParseException with message '</p>
<p dir="auto">'SchemaLocation: schemaLocation value = ' <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a>' must have even number of URI's.'</p>
<p dir="auto">The old xml is :</p>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&gt;</a></p>
<p dir="auto">&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;!---- more bean definitions go here... --&gt;<br>
&lt;/beans&gt;</p>
<p dir="auto">The new xml should be :</p>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a> <a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"&gt;</a></p>
<p dir="auto">&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;bean id="..." class="..."&gt;<br>
&lt;!-- collaborators and configuration for this bean go here --&gt;<br>
&lt;/bean&gt;<br>
&lt;!---- more bean definitions go here... --&gt;<br>
&lt;/beans&gt;</p>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077142" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8056" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8056/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8056">#8056</a> Wrong bean configuration xml file header in Spring 2.0.4 PDF Reference Manual : missing data in xsi:schemaLocation (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=saucier" rel="nofollow">Stephen R. Saucier</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4718?redirect=false" rel="nofollow">SPR-4718</a></strong> and commented</p>
<p dir="auto">the formatFieldValue method in AbstractPropertyBindingResult does not locate any PropertyEditors using PropertyEditorManager.find(...). This means that any PropertyEditors located using the JavaBeans convention of having the name the same as the class it is editing with the suffix "Editor" are not used during the binding process.</p>
<p dir="auto">I had been registering my PropertyEditors with a PropertyEditorRegistrar (and then with a org.springframework.web.bind.support.ConfigurableWebBindingInitializer) but when I switched to allowing the PropertyEditorManager to discover my PropertyEditor, binding no longer works.</p>
<p dir="auto">Note that TypeConverterDelegate does use PropertyEditorManager to find PropertyEditors, so my PropertyEditors are used in other places (the setAsText use case, e.g. coercing Strings in my spring configuration files to the appropriate type), but not during web binding (the getAsText use case).</p>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/13963/AbstractPropertyBindingResult.patch" rel="nofollow">AbstractPropertyBindingResult.patch</a> (<em>1.49 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/13968/BeanUtils.patch" rel="nofollow">BeanUtils.patch</a> (<em>688 bytes</em>)</li>
</ul>