<html><body bgcolor="#FFFFFF"><div>Nice, I found that on Spring docs also. Thanks for the code.<br><br>Em 30/06/2011, às 10:14, Adrian Gonzalez <<a href="mailto:adr_gonzalez@yahoo.fr">adr_gonzalez@yahoo.fr</a>> escreveu:<br>
<br></div><div></div><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Hello,</span></div><div><br><span></span></div><div><span>Just looked at </span><font face="Arial" size="2">2011-06-29 </font><span>meeting.</span></div>
<div><span><br></span></div><div><span>If it can help, Spring has a conversion API.</span></div><div><span>Here are some links :<br></span></div><div><span> * <a href="http://static.springsource.org/spring/docs/3.1.0.M2/spring-framework-reference/html/validation.html#core-convert"><a href="http://static.springsource.org/spring/docs/3.1.0.M2/spring-framework-reference/html/validation.html#core-convert">http://static.springsource.org/spring/docs/3.1.0.M2/spring-framework-reference/html/validation.html#core-convert</a></a></span></div>
<div><span> * <a href="http://static.springsource.org/spring/docs/3.1.0.M2/javadoc-api/org/springframework/core/convert/package-frame.html"><a href="http://static.springsource.org/spring/docs/3.1.0.M2/javadoc-api/org/springframework/core/convert/package-frame.html">http://static.springsource.org/spring/docs/3.1.0.M2/javadoc-api/org/springframework/core/convert/package-frame.html</a></a></span></div>
<div><span> * <a href="http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm"><a href="http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm">http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm</a></a><br>
</span></div><div><br></div><div>Here's a usage sample (taken from spring doc) :</div><pre class="programlisting">@Service
<span class="hl-keyword">public</span> <span class="hl-keyword">class</span> MyService {
@Autowired
<span class="hl-keyword">public</span> MyService(ConversionService conversionService) {
<span class="hl-keyword">this</span>.conversionService = conversionService;
}
<span class="hl-keyword">public</span> <span class="hl-keyword">void</span> doIt() {
<span class="hl-keyword">this</span>.conversionService.convert(...)
}
}<br><br></pre><div><br><span></span></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">Adriàn<br></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br>
<span>seam-dev mailing list</span><br><span><a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/seam-dev">https://lists.jboss.org/mailman/listinfo/seam-dev</a></span><br>
</div></blockquote></body></html>