Ok, tracked the problem to this: The proper value is persisted by the Page
client persister, the incorrect value comes out of the App client persister
and overwrites the value placed in by the Page persister (as the App
persister comes last).
----- 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]