As far as I can see there is no simple solution using addRowLink. If you
have found a solution to this by now, I am interested in how you solved it.
If I can find a solution I will post it here.
Dariusz skrev:
Is it possible?
Maybe there is a workaround for this.
moonlee wrote:
I use AjaxFormLoop-addrow-addrowlink-parameter to dynamic add a row , I
want to fill the row with some defult value which base on the link param
user click.
for example:
tml:
<t:parameter name="addRow">
<td colspan="5" style="text-align: right">
<t:addrowlink value="1">Add a row</t:addrowlink>
</td>
<td colspan="5" style="text-align: right">
<t:addrowlink value="2">Add a row</t:addrowlink>
</td>
</t:parameter>
java:
PersonHolder onAddRow(Object value) {
// Create a skeleton Person and add it to the displayed list
with a
unique key
Person newPerson = PersonService.findPersonById(value);
PersonHolder newPersonHolder = new PersonHolder(newPerson,
true, 0 -
System.nanoTime());
_personHolders.add(newPersonHolder);
return newPersonHolder;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org