You haven't provided the code for your event link so it's hard to say why you think it would work.
I would guess that you are putting the value of the field as the context for the event link, in which case tapestry is doing exactly what you asked, sending back the value of the field as it was defined when the page rendered. If you want to update the field with the current value for the form the you'll need to either post the whole form or do some JavaScript to get the values you need into the event link. -- Josh On Sep 19, 2010, at 9:35 AM, hese <[email protected]> wrote: > > > Hi, > > I have a grid in which i have an editable field. I've added an actonLink to > the same cell. When the value of the editable cell is changed and the > actionLink is pressed I want to receive the changed value and the id and > process it. > > my tml looks like this - > > <table t:type="grid" t:source="myobjects" t:row="myobject" > t:include="id,firstname,lastname"> > <p:firstNameCell> > <input t:type="textfield" t:value="object.firstName"/> > Save > </p:firstNameCell> > </table> > > I've written an action handler - > > void onSave(String id) > { > System.out.println(id); //expect to receive something like "102-changed > name" > } > > but when I change the name and click on save, i only get the old name in the > event handler and not the changed one. > > Where am i going wrong? > > Thanks > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/editable-grid-not-receiving-the-changed-value-in-the-event-handler-tp2845740p2845740.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
