You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pete <pe...@gmx.org> on 2005/09/19 14:13:59 UTC
editable table (CRUD) and stale link
Hi,
currently I try to get an typical editable table where someone can add,
edit or delete rows.
<table jwcid="@contrib:TableView" source="ognl:domains"
columns="name, path" element="table">
<tr>
<td class="label">Host</td>
<td class="label">Path</td>
<td class="label"> </td>
</tr>
<tr jwcid="@contrib:TableRows" row="ognl:domain">
<td><input type="text" jwcid="@TextField" displayName="Host"
value="ognl:domain.name" validators="validators:required"/></td>
<td><input type="text" jwcid="@TextField" displayName="Pfad"
value="ognl:domain.path" validators="validators:required"/></td>
<td><a href="#" class="link" jwcid="@ActionLink"
listener="listener:onDeleteDomain">delete</a></td>
</tr>
</table>
I would like to use @ActionLink to trigger deletion of single rows.
Unfortunately, as action link seems
to be non-deferred like the form-related links/buttons I get a StaleLink.
Are there plans on supporting attribute 'defer' for ActionLink?
Using LinkSubmit with onclick='document.form.events.cancel()' seems to
still submit the form which is unwanted behaviour.
For example if I delete an empty row, it will be deleted but at the same
time the validators will complain about missing
text (validators:required).
any ideas?
Best regards
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org