Ulrich Stärk wrote:
Nick,
there is no difference whether your event method gets triggered upon
clicking a link or a button. Except that you can pass parameters like
an index when using actionlink. And that's exactly what you want.
Ok, but if the data are not transmitted to the server, we are not going
anywhere.
My use case was : I have a form with a list of text field, for each
field a delete (link|button), and a submit button.
I want that if an user modify some fields and then click to delete
(without submitting the form), the matching value is deleted _and_ other
modification are kept.
To achieve that, the field values have to be transmitted to the server,
what is not done with an action link.
So, Nick Westgate point out the good solution (I think), I just need to
be done ;)
Just to be sure : there is no other solution than to use javascipt to do
that ? I was thinking that as Tapestry handle the form action link, it
would be possible to add a context to submit button, as example :
<:tform>
....
<t: submit t:id="context" context="value">
<t: submit t:id="submit">
</t:form>
With submit from "submit" button mapped to action link
myformcomponent.form and "context" button mapped to
myformcomponent.form/value, and in Java code, context available as now
for action link : onSelectedFromContext(String value) {...}
But I have absolutely no idea on the feasibility of that.
Between, thanks for the advice and your propositions !
Francois
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]