The button doesn't go through ajax, it is normal form submit.
Ari S.
----- Original Message -----
From: "Martijn Dashorst" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 11, 2006 12:32 PM
Subject: Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and
buttons on same page
Add the updating region to the ajax target of the button request. That
should update the URL for the self updating timer.
Martijn
On 5/11/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
So the url that the ajax behaviour has isn't updated to version 1? When
the page is rerendered?
johan
On 5/11/06, Ari Suutari < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We are experiencing odd behaviour when a page has
>
> - a region, which is constantly updated by AjaxSelfUpdatingTimerBehavior
> (say each 3 seconds)
> - form with buttons
>
> When the page is initially loaded, timer starts updating values as
> expected.
> When a button on form is pressed, page is versioned to version 1.
> When timer updates it's region next time, it seems to request page
> version 0,
> which causes following stuff being output to log file:
>
> [http-80-Processor25] DEBUG Getting page [path = 0:ajaxSpan,
> versionNumber = 0]
> [http-80-Processor25] DEBUG Getting page [path = 0:ajaxSpan,
> versionNumber = 0]
> [http-80-Processor25] DEBUG UNDO: rollback [Page class =
> syncrontech.examples.testing.AjaxTestPage, id = 0] to version 1
> [http-80-Processor25] DEBUG UNDO: rollback [Page class =
> syncrontech.examples.testing.AjaxTestPage, id = 0] to version 1
>
> The timer and ajax continues to function, but when user presses
> a button (or link) it refers to page version 1 (as expected) but as this
> version was
> just discarded from page map user gets a 'page expired' message.
>
> No matter what version the page has reached, the ajax call seems to
> reset it to zero.
>
> I have a simple example code of the case, if someone needs it.
>
> Ari S.
>
>
>
> -------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
--
Wicket 1.2 is coming! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user