because if you do not stop the behavior it will generate a callback on the client for itself, but when istemporary() is true after it generated the callback it will be removed. so now the callback points to something that is not there. it should be ok to use istemporary() but you also have to call stop()
-igor On Fri, Mar 20, 2009 at 5:49 AM, Heidi Burn <[email protected]> wrote: > Thank you very much, Kevin > May I ask why isTemporary is not working? > > Heidi > > On Thu, Mar 19, 2009 at 11:10 PM, Kevin Logue <[email protected]> wrote: >> If you just want to stop AjaxSelfUpdatingTimerBehavior after a particular >> event(or one call even), you could always call the stop method on the >> AjaxSelfUpdatingTimerBehavior. No idea if this is the best practice but it's >> worked for me. >> >> Kevin >> >> Heidi Burn wrote: >>> >>> Hi, guys, >>> >>> I code AjaxSelfUpdatingTimerBehavior with isTemporary() {return true;}. >>> After being called once I get >>> >>> ERROR - RequestCycle - >>> java.lang.NullPointerException >>> at org.apache.wicket.request. >>> >>> target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:96) >>> at >>> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) >>> at >>> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1236) >>> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1315) >>> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1414) >>> at org.apache.wicket.RequestCycle.request(RequestCycle.java:542) >>> at >>> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) >>> at >>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:289) >>> >>> >>> What is my problem? >>> Please, help me. >>> >>> Heidi >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> __________ Information from ESET NOD32 Antivirus, version of virus >>> signature database 3948 (20090319) __________ >>> >>> The message was checked by ESET NOD32 Antivirus. >>> >>> http://www.eset.com >>> >>> >>> >>> >>> >> >> >> --------------------------------------------------------------------- >> 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]
