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() 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
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 output it straight into the response between 

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 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'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 getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through 
RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list

Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Jim McLaughlin   Director, Software EngineeringStonewater Control Systems
http://www.stonewatercontrols.com(o) 847.864.1060 x107(c) 773.416.0994
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


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'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 getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through 
RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim

-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[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 getJsTimeoutCall is protected. To make it even more difficult, the components I want to add SelfUpdatingBehavior to are nested a few levels deep inside the component being added, so I don't have direct access to the AjaxRequestTarget. If getJsTimeoutCall is made public, I suppose I could get access to the RequestTarget through 
RequestCycle.get().getRequestTarget(). Where would be the best place to do this: onBind() or another callback hook, or at instantiation?thanks in advance,jim
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user