Re: [Wicket-user] AJAX causes submit to display expired page
Thanks for the reply. We had to develop our own self-updating behavior since wicket does not provide any means for enabling/disabling auto-update per user request. Igor Vaynberg wrote: its probably because your ajax urls are creating new versions of pages - and when you submit the form it unrolls the page version. why cant you use the self updating behavior? if you dont - which is fine - you have to construct the url exactly like it does - those urls do not construct/nor rollback any versions. -Igor On 8/17/06, *Nili Adoram* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I have a submit button that sets response page to some other page after form is submitted (I override Form.delegateSubmit). In addition there is an AJAX link in that page that refreshes some components in the page every 5 seconds. Since we cannot disable AjaxSelfUpdatingTimerBehavior we used our own JavaScript for re-invoking AJAX every 5 seconds. When DefaultRequestTargetResolverStrategy.resolveRenderedPage handles repeating AJAX request it cannot find any page so it defaults to ExpiredPageClassRequestTarget. This causes no problem when an AJAX requests is handled. However, if I submit the form and an AJAX request is handled simultaneously this causes the expired page to be rendered instead of the target page. Please advise, Thanks, Nili - 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=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AJAX causes submit to display expired page
Hi all, I have a submit button that sets response page to some other page after form is submitted (I override Form.delegateSubmit). In addition there is an AJAX link in that page that refreshes some components in the page every 5 seconds. Since we cannot disable AjaxSelfUpdatingTimerBehavior we used our own JavaScript for re-invoking AJAX every 5 seconds. When DefaultRequestTargetResolverStrategy.resolveRenderedPage handles repeating AJAX request it cannot find any page so it defaults to ExpiredPageClassRequestTarget. This causes no problem when an AJAX requests is handled. However, if I submit the form and an AJAX request is handled simultaneously this causes the expired page to be rendered instead of the target page. Please advise, Thanks, Nili - 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=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX causes submit to display expired page
its probably because your ajax urls are creating new versions of pages - and when you submit the form it unrolls the page version. why cant you use the self updating behavior? if you dont - which is fine - you have to construct the url exactly like it does - those urls do not construct/nor rollback any versions. -IgorOn 8/17/06, Nili Adoram [EMAIL PROTECTED] wrote: Hi all,I have a submit button that sets response page to some other page afterform is submitted (I override Form.delegateSubmit).In addition there is an AJAX link in that page that refreshes somecomponents in the page every 5 seconds. Since we cannot disable AjaxSelfUpdatingTimerBehavior we used our own_javascript_ for re-invoking AJAX every 5 seconds.When DefaultRequestTargetResolverStrategy.resolveRenderedPage handlesrepeating AJAX request it cannot find any page so it defaults to ExpiredPageClassRequestTarget.This causes no problem when an AJAX requests is handled.However, if I submit the form and an AJAX request is handledsimultaneously this causes the expired page to be rendered instead of the target page.Please advise,Thanks,Nili-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 easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user