Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.0.5
-
None
Description
(This could be considered an enhancement except that it worked in a previous snapshot.)
Summary says it all but here's a simple example:
html:
<select t:type="select" t:value="someIntegerProperty" t:model="selectModelList"></select>
java:
public List getSelectModelList() // note list is currently broken as per TAPESTRY-1597
Now results in the following exception:
org.apache.tapestry.ioc.internal.util.TapestryException
No adapter from type java.lang.Integer to type org.apache.tapestry.services.ValueEncoderFactory is available (registered types are java.lang.Enum, java.lang.String).
Defining ValueEncoders for all the simple wrapper types used in domain objects defeats the purpose of all the smart type conversion Tapestry does elsewhere.
Cheers,
Nick.