<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=joerg.heinicke@gmx.de" rel="nofollow">Jörg Heinicke</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3654?redirect=false" rel="nofollow">SPR-3654</a></strong> and commented</p>
<p dir="auto">I have a property of type collection and want to bind a form:select to it. Since it's of collection type the CustomCollectionEditor is used. Unfortunately, there is no chance to use an additional custom PropertyEditor for the actual collection elements.<br>
This seems to be quite similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398071087" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7322" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7322/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7322">#7322</a> for form:checkbox.</p>
<p dir="auto">I wrote my analysis in the forum at <a href="http://forum.springframework.org/showthread.php?t=40960" rel="nofollow">http://forum.springframework.org/showthread.php?t=40960</a>.</p>
<p dir="auto">There is a hackish work-around at the moment: Since CustomCollectionEditor.convertElement(Object) actually replaces PropertyEditor.setAsText(String) + PropertyEditor.getValue() only a proper conversion from Object to String is missing. Spring falls back to toString() at the end in ValueFormatter.getDisplayString(Object, PropertyEditor, boolean). So the hackish work-around is to implement toString() doing the PropertyEditor.setValue(Object) + PropertyEditor.getAsText() part of the custom PropertyEditor I actually wanted to use.</p>
<p dir="auto">I find the CustomCollectionEditor quite strange anyway since it is used for both converting a collection to ... hmm ... a collection and to convert a string representation of a single object into a collection as well by delegating to convertElement(Object). Actually my extended CustomCollectionEditor gets injected the custom PropertyEditor for the collection elements. This one is used in convertElement(Object). If there would only be a way to convert the objects to strings. I'd prefer a solution where I don't need to touch the CustomCollectionEditor at all.</p>
<p dir="auto">Joerg</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.6</p>
<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="398083114" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8842" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8842/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8842">#8842</a> form:checkboxes and form:radiobuttons should use registered property editor (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=bozho" rel="nofollow">Bozhidar Bozhanov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9318?redirect=false" rel="nofollow">SPR-9318</a></strong> and commented</p>
<p dir="auto">Currently all <code class="notranslate">@Async</code> methods are executed using the same thread pool. But often you need different groups of related async operations and you don't want them to share the same pool. For example, a scheduled job may want to asynchronously invoke a method multiple times, but if it uses <code class="notranslate">@Async</code> it will consume all the threads that are supposed to be used by other processes.</p>
<p dir="auto">That's why I suggest to add an async group. <code class="notranslate">@Async</code>(group="main"), <code class="notranslate">@Async</code>(group="calculations"), etc. Each of them will have a separate pool.</p>
<p dir="auto">&lt;task:executor id="mainExecutor" pool-size="100" group="main" /&gt;<br>
&lt;task:executor id="calcExecutor" pool-size="20" group="calculations" /&gt;<br>
&lt;task:annotation-driven executors="mainExecutor,calcExecutor" /&gt; (or a nested &lt;list&gt;)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<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="398102969" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11513" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11513/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11513">#11513</a> Enable Executor qualification with <code class="notranslate">@Async</code> (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">1 votes, 1 watchers</p>