On Tue, 20 May 2014 09:14:08 -0300, Stephen Nutbrown <steves...@gmail.com> wrote:

Hello,

Hi!

    <t:loop t:source="result.action" t:value="currentAction"
index="indexProp" t:formstate="ITERATION">
    <input t:type="TextField" t:value="result.action.indexProp"/>
    </t:loop>

The prop binding (the default one) doesn't support using list or array indexes.

This won't work because (as far as I know), this is the same as
getResult().getAction.getIndexProp. So I tried

    <input t:type="TextField" t:value="result.action.${indexProp}"/>

Never, never, ever use ${} when passing parameters. In 100% of the times, it's either completely wrong or completely useless.

Try this:

<t:loop t:source="result.action" t:value="currentAction">
     <input t:type="TextField" t:value="currentAction"/>
</t:loop>

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to