MHL3060 / bentux

Automatically exported from code.google.com/p/bentux
0 stars 0 forks source link

brandName failed on product page #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. product page
2. choose a brandname
3. fill out the form

What is the expected output? What do you see instead?
""ailed to convert property value of type [java.lang.String] to required type 
[local.tux.app.model.BrandName] for property brandName; nested exception is 
java.lang.IllegalArgumentException: Cannot convert value of type 
[java.lang.String] to required 
type [local.tux.app.model.BrandName] for property brandName: no matching 
editors or 
conversion strategy found""

Please use labels and text to provide additional information.

possibly related to the remaining work i have with the ingredientform. will 
take a look tomorrow.

Original issue reported on code.google.com by lhkh...@gmail.com on 28 Sep 2009 at 5:05

GoogleCodeExporter commented 9 years ago
No. this is my issue. Basically, it is not able to find a converter to convert 
a Long
to a BrandName object.

To fix this issue, you need to add the converter in the initBinder function.

once you registered the converter, it will do the conversion automatically for 
you.

you have to add setBrandNameManager function as well ( need to add this 
property to
dispatch-servlet.xml too)

do you want to fix it or do you want me to fix it. I guess it is a good task 
for you.

Original comment by benli3...@gmail.com on 28 Sep 2009 at 7:37

GoogleCodeExporter commented 9 years ago
ya, i will take care of that

Original comment by lhkh...@gmail.com on 29 Sep 2009 at 2:36

GoogleCodeExporter commented 9 years ago
cant find the release that did the fix for this

Original comment by lhkh...@gmail.com on 4 Oct 2009 at 5:01