Hi,

No it's definitely not that.  I tried your class to be sure and it still
doesn't work.

I've done some more debugging with Firefox's Firebug and discovered that
when I switch back to the tab with the updating behaviour it does not
contain the evaluate part.

I'll print this, it's easier:

This is in the response after I switch to the self updating tab for the
first time:
</component><evaluate><![CDATA[setTimeout("var
wcall=wicketAjaxGet('?wicket:interface=:5:tabs:panel:logOutput::IBehaviorListener:0:-1',null,null,
function() {var c = Wicket.$('logOutput611'); return typeof(c) !=
'undefined' && c != null}.bind(this));",
5000);]]></evaluate></ajax-response>

Now, if I navigate away, and stay away (on another tab), until the timer
fires it fails the precondition check.  When I go back to the self updating
tab the response contains:
</component></ajax-response>

There is no evaluate section.

The  renderHead() seems like it is responsible for this, as follows:

if (!stopped && (!headRendered || !request.isAjax())) {
    headRendered = true;
    response.renderOnLoadJavascript(getJsTimeoutCall(updateInterval));
}

Now, stopped is definitely false so one of the other if-conditions must be
responsible.  I'll do some more work on this now.

Thanks for the help so far.


dtoffe wrote:
> 
> Hi,
> 
>     First, let's see if we are talking about the same code, here is the
> actual code I use:
> 
> 
> <SNIP>
> 
> 
>     If I recall correctly, I had to make a small change in other method, I
> believe it's in renderHead() or in respond(), please check that, I'm in a
> hurry right now.
> 
> hth,
> 
> Daniel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Is-it-possible-to-restart-an-AjaxSelfUpdatingBehaviour-after-it-has-been-stopped--tp24626909p24645797.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

Reply via email to