I'm sorry, but what do you expect Tapestry to do about that? You're explicity setting the property each time the page is loaded. @Persist doesn't change that.

You'll need to check whether or not persistThisOne is not null before assigning to it for this to work.

-Filip

On 2008-09-07 08:39, michael lim wrote:
i tried this. whenever i press f5, pagebeginrender will still be called and db
will be hit


@Persist("session")
public abstract Collection getPersistThisOne();
public abstract void setPersistThisOne(Collection persistThisOne);
 public  void pageBeginRender(PageEvent event) {
     System.out.println("pageBeginRender......");
setPersistThisOne( dao.getFromDB());

}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to