Igor Drobiazko wrote:
> 
> If you are using 5.2, just rename your onActivate() method to pageReset().
> 

Hi Igor thank for ur response.

I tried pageReset() method but it's not delete the last session,

this is my track:

on my grid I have actionlink with personId as context..when I clicked this
actionlink its will fill some textfield that I defined on tml

input t:type="textfield" t:value="person.person.name"/

input t:type="textfield" t:value="person.person.address"/

search and reset button
input t:type="submit" t:id="search" value="Search"/
input t:type="submit" t:id="reset" value="Reset"/

link on grid 
a t:type="actionlink" t:id="edit"
t:context="${personGrid.personId}">${personGrid.person_name}</a


@Persist
private Person person;

void onActionFromEdit(String personId){
                this.person = 
getMasterFacade().getPersonDao().findByPrimaryKey(personId);
        }

void onActionFromSearch(){

}

void onActionFromReset(){
 this.person = new Person();
}

Problem: this person object still alive on session before I clicked reset
button 
Hope : clear person session but the search button still work

thank 4 ur responses


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Persist-vs-onActivate-tp3555214p3555882.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to