[weld-dev] Conversion: String to Beans
Bruno Viana
bbviana at gmail.com
Wed Oct 14 15:25:10 EDT 2009
In a web application, we usually convert the request params from String (or
String array) to Beans. All web frameworks do that.
Is string conversion a topic of Web beans spec?
A conversion workflow has usually 3 phases:
1 - inspect the property type: String, Date, Number, beans
2 - do the conversion: "'1" to 1, "01/01/2009" to Date, etc
3 - inject the converted object according the request name: "person.name",
"person.age", etc
Who would have do this conversion?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091014/232838f3/attachment.html
More information about the weld-dev
mailing list