Re: @Persist vs onActivate/OnPassivate

2011-06-14 Thread Geoff Callender
The link http://jumpstart.doublenegative.com.au/jumpstart/examples/easycrud has now been replaced by: http://jumpstart.doublenegative.com.au/jumpstart/previews/easycrud/persons On 11/11/2010, at 9:29 PM, françois facon wrote: > Hi Geoff, > > Thank you again for Jumpstart. It help so mu

Re: @Persist vs onActivate()

2011-03-14 Thread ronizedsynch
Hi Igor, it's work thank I add a bit code to pageReset() method void pageReset(){ if (getPerson() != null) person = new Person(); } :D +++ man is man +++ -- View this message in context: http://tapestry.1045711.n5.nabble.com/Persist-vs-onActivate-tp3555214p3556020.html Sent fro

Re: @Persist vs onActivate()

2011-03-13 Thread ronizedsynch
quot;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}

Re: @Persist vs onActivate()

2011-03-13 Thread Igor Drobiazko
erson page it showing the person that has stored on > session. > > I ever use onActivate() method > > void onActivate(){ > _resources.discardPersistentFieldChanges(); > } > > but that is caused the search button doesn't work > > any idea ?? > thank 4 all >

Re: @Persist vs onActivate()

2011-03-13 Thread ronizedsynch
ut t:type="submit" t:id="search" value="Search" class="button"/ /form table t:type="grid" t:source="listPerson" t:row="personGrid" /table -- View this message

@Persist vs onActivate()

2011-03-12 Thread ronizedsynch
(){ _resources.discardPersistentFieldChanges(); } but that is caused the search button doesn't work any idea ?? thank 4 all Regard, Rony -- View this message in context: http://tapestry.1045711.n5.nabble.com/Persist-vs-onActivate-tp3555214p3555214.html Sent from the Tapestry - User mailing list archive at Nabbl

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Richard Hill
:) -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tapestry users Subject: Re: @Persist vs onActivate/OnPassivate Date: Thu, 11 Nov 2010 13:00:45 -0200 On Thu, 11 Nov 2010 12:55:51 -0200, Richard Hill wrote: > One thing that wou

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 12:55:51 -0200, Richard Hill wrote: One thing that would be great is a way to create an internal link with request parameters. Your example shows how to do via a POST, I'd like to implement a GET link instead. Something like mypage but instead of activation context, reques

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Richard Hill
ginal Message- From: Geoff Callender Reply-to: "Tapestry users" To: Tapestry users Subject: Re: @Persist vs onActivate/OnPassivate Date: Thu, 11 Nov 2010 00:51:42 +1100 Hmmm, so I guess this examples page of "Passing Data Between Pages" isn't me

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread françois facon
Hi Geoff, Thank you again for Jumpstart. It help so much. my 2 rupies. for the page PassingDataBetweenPages1, I was about to suggest to replace the form use to access page2 (Activation Context) by a pagelink. But I realise that, PassingDataBetweenPages1 is just the perfect exemple when naviga

Re: @Persist vs onActivate/OnPassivate

2010-11-10 Thread Geoff Callender
Hmmm, so I guess this examples page of "Passing Data Between Pages" isn't meeting the need: http://jumpstart.doublenegative.com.au/jumpstart/examples/state/passingdatabetweenpages1 Suggestions welcome. Cheers, Geoff On 11/11/2010, at 12:06 AM, Nicolas Barrera wrote: > +1 for the be

Re: @Persist vs onActivate/OnPassivate

2010-11-10 Thread Nicolas Barrera
+1 for the best practices page Nicolás.- 2010/11/9 françois facon > Passivate will also generate clean and *Bookmarkable* URL for you. > > Activate/ passivate will reduce memory use and increase performance in > server side. > because Creating session cost a lot and require memory. > > by usin

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread françois facon
Passivate will also generate clean and *Bookmarkable* URL for you. Activate/ passivate will reduce memory use and increase performance in server side. because Creating session cost a lot and require memory. by using @Persist, you will generate at east one more request to initialize your data. Ab

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Andreas Andreou
> It's flash, not flush. :) That's a great idea for an easter-egg there! > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > ---

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Thiago H. de Paula Figueiredo
On Tue, 09 Nov 2010 15:13:46 -0200, Josh Kamau wrote: the website. Lets take what i just asked for example. I read about activation , passivation and @Persist , i am able to use either to pass values across pages. Then i asked my self, if both methods are working, then which should i use wh

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Josh Kamau
around. It's always > > good to have a Google (making sure to avoid tap 4 results(!)) and/or > > search the mailing list as lots of stuff has been covered. And it's > > always quite interesting to do that as often I find some new tidbit > > that's of later use. &

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Katia Aresti
ays quite interesting to do that as often I find some new tidbit > that's of later use. > > > -Original Message- > From: Josh Kamau > Reply-to: "Tapestry users" > To: Tapestry users > Subject: Re: @Persist vs onActivate/OnPassivate > Date: Tue,

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Richard Hill
f has been covered. And it's always quite interesting to do that as often I find some new tidbit that's of later use. -Original Message- From: Josh Kamau Reply-to: "Tapestry users" To: Tapestry users Subject: Re: @Persist vs onActivate/OnPassivate Date: Tue, 9 Nov 2010

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Josh Kamau
Thanks all for the responses. I have got my questions answered. @Katia Is asking trivia questions discouraged? i didnt know. i will ask something here only as the last resort. regards On Tue, Nov 9, 2010 at 11:42 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 09 Nov 2

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Katia Aresti
Hi Josh, You will find all the information concerning @Persist annotation here (which stores data in the session) : http://tapestry.apache.org/tapestry5.2-dev/guide/persist.html and here about onActivate / onPasivate : http://tapestry.apache.org/tapestry5.2-dev/guide/pagenav.html<%20http://tapes

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Richard Hill
ng. -Original Message- From: Josh Kamau Reply-to: "Tapestry users" To: Tapestry users Subject: @Persist vs onActivate/OnPassivate Date: Tue, 9 Nov 2010 11:11:13 -0500 Hi team; 1. What is the difference between using @Persist and using the activate/passivate pairs? are they always

Re: @Persist vs onActivate/OnPassivate

2010-11-09 Thread Thiago H. de Paula Figueiredo
On Tue, 09 Nov 2010 14:33:20 -0200, Richard Hill wrote: @Persist stores the field value in the session, scoped to the page. It will persist for the duration of the session. This will time-out per whatever the default is for your servlet container. So yes if your session time-out is lengthy an

@Persist vs onActivate/OnPassivate

2010-11-09 Thread Josh Kamau
Hi team; 1. What is the difference between using @Persist and using the activate/passivate pairs? are they always interchangeable as a means of passing a value from one page to another? 2. When @Persist is used, is the value stored in the session? and at what point is it "cleaned up" . Is there a