Re: Re: How to difference the first time a request to a page and a rewind to a page

2006-10-23 Thread Sam Gendler
Well, you don't want to store onceInitialized as a persistent property, at least not within the context of how I am using it. It doesn't mean that the page will only be initialized once per user-session. It just means that it will be initialized only once per http request, even if there is both

Re: How to difference the first time a request to a page and a rewind to a page

2006-10-23 Thread Huang Gehua
In the code u write there are two method "isOnceInitialized()" and "setOnceInitialized()" . So i think there should have a property "onceInitialized" for this.For example: @Persist("client") public abstract boolean isOnceInitialized(); public abstract void setOnceInitialized(boolean b); ... Am

Re: How to difference the first time a request to a page and a rewind to a page

2006-10-21 Thread Sam Gendler
getRequestCycle().isRewinding(). Here's what my pageBeginRender method looks like (this method is guaranteed to execute after both pageAttached and activateExternalPage): public final void pageBeginRender(PageEvent event) { initPage(event); //execute before render AND rewind if

How to difference the first time a request to a page and a rewind to a page

2006-10-21 Thread Huang Gehua
Im was a T4 user. I want to do something in the first time a request to a page.And does not want this "something" to be done in the rewind period when a form is submit or other event was actived. Is there a PageEvent to handle this first time of requesting?Or other way to solve this problem? Any a