You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Faneyte, Diego" <di...@wur.nl> on 2004/04/07 17:08:20 UTC
Script and Foreach component with buttons
Hello,
I am trying to write a script that does some stuff when a button is pressed.
With a Foreach based on a List with names i generate a couple of buttons on a form (all anonymous).
Now is my question: how can i access the buttons in FormTab.script so that i can attach a even handler and do some stuff?
<body jwcid="@Body">
<span jwcid="@Script" script="scripts/FormTab.script"/>
<span jwcid="@Form">
<table border="0" cellspacing="0" cellpadding="5" width=750>
<tr height=23>
<span jwcid="foreach@Foreach" source="ognl:tabText">
</td>
<span jwcid="@Button" label="ognl:components.foreach.value">Tab Title</span>
</td>
</span>
</tr>
</table>
</span>
</body>
Regards,
Diego
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org