You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Heidi Burn <he...@gmail.com> on 2009/03/19 16:30:58 UTC
AjaxSelfUpdatingTimerBehavior Once
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior Once
Posted by Igor Vaynberg <ig...@gmail.com>.
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 <he...@gmail.com> 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 <ke...@viableoptions.ie> 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: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>> __________ 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior Once
Posted by Heidi Burn <he...@gmail.com>.
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 <ke...@viableoptions.ie> 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: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>> __________ 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxSelfUpdatingTimerBehavior Once
Posted by Kevin Logue <ke...@viableoptions.ie>.
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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> __________ 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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org