
Originally Posted by
Marten Deinum
Which makes it even easier... Then you don't need to do nasty things with regular expressions.
Then I must really have missed the point
I'll try to explain my question a little better:
Here's my form:
Code:
class Checkout {
Product product;
...
}
and this my html:
Code:
<form:select path="product">
<form:option label="Product 123" value="123"/>
...
</form:select>
so... how can I tell Spring which one of my two (String, Product) converters it should use to bind "123" to a Product?