Hi,

I solved it by adding the encoder parameter as you suggested:

<t:loop t:source="coordinates" t:value="coordinate" t:encoder="encoder"
t:index="loop">

public ValueEncoder<CoordinateDto> getEncoder() {
                return new ValueEncoder<CoordinateDto>() {

                        @Override
                        public String toClient(CoordinateDto value) {
                                return String.valueOf(loop);
                        }

                        @Override
                        public CoordinateDto toValue(String clientValue) {
                                return 
coordinates.get(Integer.valueOf(clientValue));
                        }
                };
        }

I guess this is what I was supposed to do?

Thanks again Thiago!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Form-fields-based-on-List-tp5720042p5720047.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