is there an equivilent for components? On Thu, 2005-09-22 at 15:40 +0300, Ron Piterman wrote: > implement PageDetachListener > <ציטוט Patrick Casey: > > *boggle* > > > > How am I supposed to reset the contents of a page before it goes > > back into the pool then? > > > > --- Pat > > > > > >>-----Original Message----- > >>From: Pickerel Yee [mailto:[EMAIL PROTECTED] > >>Sent: Wednesday, September 21, 2005 8:01 PM > >>To: Tapestry users > >>Subject: Re: how to init a property in the code? > >> > >>thank the reply. but "initialize" has been deprecated in the tapestry 4 > >>beta 7. > >> > >>Patrick Casey wrote: > >> > >> > >>> Try using the "initialize" method. > >>> > >>> --- pat > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: Pickerel Yee [mailto:[EMAIL PROTECTED] > >>>>Sent: Wednesday, September 21, 2005 7:39 PM > >>>>To: [email protected] > >>>>Subject: how to init a property in the code? > >>>> > >>>>i define a property in the page specification as blow: > >>>> <property name="referItem" initial-value="new > >>>>d2m.adds.model.ReferItem()"/> > >>>>everything is ok. > >>>> > >>>>but when i remove the init of referItem into the page code as below : > >>>> <property name="referItem"/> > >>>>and in the page code: > >>>> public void prepareForRender(IRequestCycle cycle) > >>>> { > >>>> if (!cycle.isRewinding()) > >>>> { > >>>> this.setReferItem(new d2m.adds.model.ReferItem()); > >>>> } > >>>> } > >>>> > >>>>it'ok when i do the first visit, but when do a submit, i got a null > >>>>point excepion that's tell me referItem is null. i don't know why, > >>>>anyone can tell me is a bug or i do something wrong with it? > >>>> > >>>>--------------------------------------------------------------------- > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>> > >>>> > >>> > >>> > >>> > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Dan Adams Software Engineer Interactive Factory
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
