Hmm. Maybe I misunderstood you. When you enter a value into a field in the page, tapestry will call to the getter for that variable when the page render, and the setter of the variable (with you entered value) when you submit the form of which the (I assume) TextField is a part, like;
<div jwcid="@TextField" value="ognl:myvalue"/> .. public abstract void setMyvalue(String v); public abstract String getMyvalue(); Then, the next time you enter something in the field and submit, the old value will be overwritten and tapestry will count on you to have saved it. Again, apologies if the problem is something else altogether. Cheers, PS On 5/29/06, Stephane Decleire <[EMAIL PROTECTED]> wrote:
Yes i could ... but it looks like an elephant gun just to keep the trac of an old value that Tapestry has to know ... but where ? :-\ Peter Svensson wrote: > Maybe you could store the old value in a state object ? It's > described in > chapter four of Enjoying Web Development with tapestry, and as it > turns out > the first four chapters are freely downloadable from; > > http://agileskills2.org/EWDT/ > > Then you can save the latest or last value in that object, which will > survive between pages (or user sessions) as you wish. You could even > have a > queue which you could use for undo. > > Cheers, > PS > > On 5/29/06, Stephane Decleire <[EMAIL PROTECTED]> wrote: > >> >> Perhaps i took a wrong approach ... >> In fact, i need to apply specific code if a particular field of my form >> has been updated and not in the other case. So i need to compare the old >> to the new value of this field but i can't find a way to get the old >> value after the form has benn submitted ... >> >> Stephane Decleire wrote: >> >> > Hi all, >> > >> > I need to get the old value of a form field in the listener of this >> > form but i can't get this value before it's been updated with the data >> > submitted by the client ... >> > Any idea is welcome ! >> > >> >> -- >> Stéphane Decleire >> >> 05 56 57 99 20 >> 06 63 78 69 06 >> >> >> > -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06