Hi,

I have a form where a part of it consists of a List. I tried to do the
following:

*.java*

@Property
private List<CoordinateDto> coordinates;

@Property
private CoordinateDto coordinate;
         
@Property
private int loop = 0;

*.tml*

<t:loop t:source="coordinates" t:value="coordinate" t:index="loop">
   <t:textfield t:value="coordinate.value"></t:textfield>
   <t:textfield t:value="coordinate.description"></t:textfield>
</t:loop>


It does show all the values, but on submit it says:

Could not find a coercion from type java.lang.String to CoordinateDto

How should I handle this?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Form-fields-based-on-List-tp5720042.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to