Hi !

I am porting a project from a ancient technology (starts with j and ends
with p)  and have come across a loop where
a form is created inside the loop.

The form has three hidden fields + a text field and my question is how is
this best done the T5 way ... I looked in the howto's
but couldn't find a match to my problem.

The problem is that I would like <t:hidden> to take one property as the
inparameter and another as the out parameter.

Ofcourse I have missed something ...

Thanks in advance,
Gunnar Eketrapp

This is the current unfinished TML version  ...

<t:loop source="${items}" value="item">
        <tr>
                <td>
                <t:form>
                    <input type="hidden" name="year" value="${ item.year}"
/>
                    <input type="hidden" name="weekNum" value="${
item.weekNum }" />
                    <input type="hidden" name="grossRevenue" value="${
item.totalRakeInCents / 100.0 }" />
                    Base percentage: <input type="text"
name="payoutPercentage" value="0.40" />
                    <input type="submit" value="Create &raquo;"
class="nicebutton"/>
                </t:form>
                </td>
            </t:if>
...

Reply via email to