Nice, I found that on Spring docs also. Thanks for the code.

Em 30/06/2011, às 10:14, Adrian Gonzalez <[email protected]> escreveu:

Hello,

Just looked at 2011-06-29 meeting.

If it can help, Spring has a conversion API.
Here are some links :
 *
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/javadoc-api/org/springframework/core/convert/package-frame.html
 *
http://www.developer.com/java/web/article.php/10935_3861826_2/The-New-Spring-30-Features-You-Need-to-Know.htm

Here's a usage sample (taken from spring doc) :

@Servicepublic class MyService {

    @Autowired
    public MyService(ConversionService conversionService) {
        this.conversionService = conversionService;
    }

    public void doIt() {
        this.conversionService.convert(...)
    }
}


Adriàn

_______________________________________________
seam-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-dev
_______________________________________________
seam-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-dev

Reply via email to