Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread Igor Vaynberg
thanks!-igorOn 11/2/06, James McLaughlin <[EMAIL PROTECTED]> wrote: sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:i think it would basically be thismove what is currently in onRenderHeadContribution(

Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread James McLaughlin
sweet. works great on my side. I'll write up a couple of tests and submit a patch.thanks,jimOn 11/2/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered() instead of attaching the script to the onloadmodifier

Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread Igor Vaynberg
i think it would basically be thismove what is currently in onRenderHeadContribution() to rendered()instead of attaching the script to the onloadmodifier output it straight into the response between

Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread James McLaughlin
Would it work like this:* in onRendered, check if the RequestTarget is an AjaxRequestTarget, and appendJavascript* remove appendJavascript from respondthanks,jimOn 11/2/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: best thing would be to make timer behaviors initialize the timeout by inlining the s

Re: [Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread Igor Vaynberg
best thing would be to make timer behaviors initialize the timeout by inlining the script after the component reather then in a boay onload attr.create an issue in jira, and a patch is welcome of course, look at ibehavior.rendered ()-igorOn 11/2/06, James McLaughlin <[EMAIL PROTECTED]> wrote: What'

[Wicket-user] AjaxTimerBehavior on Components added to AjaxRequestTarget

2006-11-02 Thread James McLaughlin
What's the best way to make this work? AbstractAjaxTimerBehavior sets itself up at first with a body onload modifier. Unfortunately, the component(s) I want to auto update are added via ajax. I see in respond(AjaxRequestTarget)  that the getJsTimeoutCall is appended to the target, but getJsTimeoutC