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?

Reply via email to