I did some initial testing. It is generating the proper QueryParameter, but
then when it goes to actually write out the URL in the DirectLink, it uses
the previous value, or so it seems.
----- Original Message -----
From: "Adam Greene" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Wednesday, August 03, 2005 12:04 AM
Subject: Problem with client side persistence
I have this piece of code:
@Persist(value="client")
public abstract int getClientValue();
public abstract void setClientValue(int what);
public void doAdd() {
int value = getClientValue() + 1;
setClientValue(value);
}
and a DirectLink on the page that calls doAdd(), the problem is that the
ClientValue will go from 0 to 1 on the first click, but get stuck there. If
I click the link again and again, it will only go to 2 (1 + 1) and if I
click a PageLink that basically calls the same page again, the value becomes
1. Is there any way to get this code working with client side persistence?
Am I missing something?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]