looks like a bug, open a ticket + quickstart please On Fri, Mar 11, 2011 at 8:08 AM, Thijs <vonk.th...@gmail.com> wrote:
> Hi, > > I have the following issue. > I have a separate js that on window.onload calls: > Wicket.Ajax.registerPreCallHandler(foo); > Wicket.Ajax.registerPostCallHandler(bar); > Wicket.Ajax.registerFailureHandler(bar); > This works great however not on the first page load when there is no > session yet. > > The session starts on the page visited so every resource gets > ;sessionid=xyz appended > > http://localhost:8080/xyz/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js;jsessionid=48703E4E37189E284112EA7A8CD6F8DB?w:lm=1299841674 > Then on the first ajax-call it re-downloads all resources (including > wicket-event.js and wicket-ajax.js) but this time without the ;sessionid > appended. This seems to cause the registration of the pre and post handlers > to be forgotten. And they are never called again. > > So I have 2 questions. > 1. How can I prevent the resources from being downloaded twice (which would > prevent the issue from happening in the first place). > 2. If 1. can't be done. How can I re-register the pre and post handlers? So > that subsequent ajax calls keep calling my Javascript in there pre and post > calls? > > thanks > > Thijs > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos